R
R
retyui2016-07-24 21:59:32
css
retyui, 2016-07-24 21:59:32

Optimizing various animations with canvas and service worker?

The idea is that I was impatient to make an unusual animation when clicking on a button,
I recently heard about this method:
We use a service worker to render any images on canvas and update the property in detail:
backgound-image: url(data:base64...)
Maybe someone has a working example?
Or is anyone interested?
I will be glad to hear feedback on the performance of such animations

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
retyui, 2016-10-20
@retyui

Implemented myself, codepen.io/retyui/details/PGZZXG

M
Maxim Vasiliev, 2016-07-25
@qmax

maybe you need requestAnimationFrame ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question