whitesmith / flooper

Use flex order to create an infinite animated loop of items.
http://whitesmith.github.io/flooper
MIT License
10 stars 2 forks source link

Responsive update #13

Closed renatodeleao closed 6 years ago

renatodeleao commented 6 years ago

If size of flooper elements change with media queries we need to recalc offsets.

tomasmcm commented 6 years ago

Is this necessary? won't block.getBoundingClientRect(); always get the current size of an element?

renatodeleao commented 6 years ago

You're right. But maybe we should cache block sizes instead of calculating it on each frameAnimation. Should be better for perf. Hmm marked as enhancement.