I am trying to create a repeating pulsing heartbeat
visual effect for a button.
I don't believe this can be done in CSS.
But how do you animate a background-image change in jQuery
or JS
?
I want to be able to do the following
$(this).animate({
'background-image': '-webkit-linear-gradient(top, white, red)',
'background-image': '-linear-gradient(top, white, red)'
}, 4000);
But jQuery does not allow non-numerical value in the CSS map.
Thanks.