in twitter
this is the normal

and this is hover glow

is there a jquery plugin or code or css effect can do that
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you tried the .focus event? http://api.jquery.com/focus/
You can do something like:
Usually, it’s better to use classes to do this (methods .addClass() and .removeClass() ), but the example is only to show the idea. 🙂
I don’t know if there is an way doing it by css, but by jquery is difficult to appear different behaviours from one navigator to another.
I have done some tests on twitter site, so I’he found those properties used in chrome and firefox. If you don’t want the glow set them like this:
In other navigators there will be more properties to set, because the first is only for firefox and the next are for webkit based browsers like chrome.
And .unbind(‘focus blur’) because twitter use them to make sure all the navigators see the pages correctly.
A code like this:
I hope it helps you! ^^