Why won't this div animate?
I added animation using jquery but it doesn't work:
$('.test-container').click(function(){
$(this).css('background-color', 'rgb(119, 119, 119)');
$(this).animate({right: '50%', opacity: 0.3}, 1000);
})
Here is the generated jfiddle: http://jsfiddle.net/eJhdm/2/
Am I doing something clearly wrong here? I do not see it.
+3
source to share
3 answers