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),
Try using this just after you apply the animation - given that "e" is your animated element:
e.outerHTML = e.outerHTML;