flipping icon indicating copy to clipboard operation
flipping copied to clipboard

Clarification about .js vs .web.js vs .css.js

Open oTree-org opened this issue 1 year ago • 0 comments

(Posting this for anyone who gets stuck in the future like I did.)

Hello, the docs mention these 3 files:

https://unpkg.com/flipping@latest/dist/flipping.js (core) https://unpkg.com/flipping@latest/dist/flipping.web.js (WAAPI adapter) 🔜 https://unpkg.com/flipping@latest/dist/flipping.css.js (CSS adapter - WIP!)

I was stuck for a while when my animation wasn't working. Eventually I realized it's because I was using flipping.js when I should have been using flipping.css.js. I assumed that flipping.js was the main one I needed. Of course I am aware that they are CSS based animations but I still veered away from flipping.css.js because it sounded like something experimental/beta. But for people making browser-based animations I guess .css.js is the one that's needed? (Not sure what the other 2 are used for? Maybe would be good to clarify for people who might encounter this issue in the future?)

oTree-org avatar Dec 26 '23 09:12 oTree-org