I have added some animation using jquery but it’s not working:
$('.test-container').click(function(){
$(this).css('background-color', 'rgb(119, 119, 119)');
$(this).animate({right: '50%', opacity: 0.3}, 1000);
})
Here is the jfiddle I created: http://jsfiddle.net/eJhdm/2/
Am I doing something obviously wrong here? I can’t see it.
You need to set a position to the div.
http://jsfiddle.net/3HhWx/