This post was deleted
I’m not really sure what the problem is, because I don’t really understand what you are trying to do, it seems fine to me. I had problems with my animation for a while with my wikipedia viewer as well and after hours of trying to figure it out, I realize putting !important solved my problem. so perhaps that is the case, since your problem is similar to mine.
here’s mine, so you can see how it works.
I also am having trouble understanding what the issue is. What exactly are you wanting to happen after entering search text and hitting enter or tab? Try to be as detailed as possible.