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),
I'd be happy to hear any criticism with my method using requestAnimationFrame as I don't see anyone else using it:
requestAnimationFrame
element.classList.add("class"); window.requestAnimationFrame(() => element.classList.remove("class"));