davidkpiano / flipping

Flipping awesome animations.
MIT License
1.4k stars 51 forks source link

Clarification about .js vs .web.js vs .css.js #44

Open oTree-org opened 8 months ago

oTree-org commented 8 months ago

(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?)