davidkpiano / flipping

Flipping awesome animations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

oTree-org opened this issue Β· 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?)