I am using CSS shader + animation. My shader class is defined as follows:
.shader{ -webkit-filter :custom(url(v.vs) mix(url(f.fs) multiply destination-over),
You definitely have to remove class that contains animation and then add it again. It should also work without .offsetWidth . It worked for me. So
.offsetWidth
$('#id').removeClass('animationClass'); $('#id').addClass('animationClass'); // starts animation again
should do the trick.