So, the highlight element method is great!
$('flashyflashy').highlight('#fcc');
Except it’s in an out much too quickly – are there any options I can modify, similar to Tween’s duration: 'long'?
Thanks 🙂
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.
You could modify the default tween duration on the elements in question. For example, if you want the tween on the element with the id ‘flashyflashy’ to have a duration of 2000ms instead of the default 500ms, call the following:
That should slow down the elements default tween instance, and thus slow down the highlight method.
You could also implement a custom highlight function:
That should allow you to pass through not only the start/end colors, but also the duration that the highlight should use. Above code untested, but it should work fine.