Quantcast
Channel: User Brett Merrifield - Stack Overflow
Viewing all articles
Browse latest Browse all 37

Why doesn't this jquery function repeat after both .animate()?

$
0
0

Is there any reason as to why this function doesn't repeat?

var $title = $('#title');var animateGlow = function($title) {    $title.animate({ 'color':'red' }, 2000)        .animate({ 'color':'blue' }, 2000, function() {            animateGlow(this);    });};animateGlow($title);

Viewing all articles
Browse latest Browse all 37

Latest Images

Trending Articles



Latest Images