148
rated 0 times
[
150]
[
2]
/ answers: 1 / hits: 16018
/ 12 Years ago, fri, october 5, 2012, 12:00:00
One of my clients asked me to make a blinking effect on a div. I think that might not be the best thing for him, maybe light fading in and out of opacity will get the attention of his customers, without annoying them.
I currently have
<a class=special_button href=#>Special Offers ›</a>
I have the following code for another div, which causes a fade in on browser load :
$('.logo-top').delay(700).animate({
'opacity' : '1',
'top' : '+=40px'
}, { duration: 700, easing: 'swing' });
How would I do something similar for the special_button, but instead looping the opacity? From say 80 to 100?
It would even be better if it looped a certain amount of times, maybe like 5.
Best,
Stepan
More From » jquery