I'm working on a mobile project and I'm trying something out. To get started, check out my simple pen and I'll explain what I'm trying to accomplish.
The user will almost always hit the search page, and when they enter a search term I want the input:focus
to launch a transition that will shrink the input box and slide in a button to clear the text. Then if the user chooses, the button would clear any entered text and maintain focus on the element. Unfortunately the jQuery I'm using to maintain focus makes the transition jitter a bit and isn't very usable.
This is really only my first crack at this, but I'm curious to hear what others have experienced when trying to get this same type of effect working. Feedback, tips, and advice are all welcome :) thanks!