juliangarnier/anime ? reverse-engineered prompt
Reverse engineered prompt
Build me a JavaScript library for creating animations on web pages. Let's call it "Anime.js". It should be lightweight, fast, and have a really simple API for making complex animations.
I want to be able to target any element on the page using CSS selectors and animate its properties like position, rotation, or color. It should also work on SVG graphics and even just raw JavaScript objects.
The library needs to give me control over things like timing, duration, easing functions, and looping. A key feature should be the ability to easily stagger animations across a group of elements, creating wave-like or cascading effects without a lot of manual code.
Please write it in modern JavaScript, maybe using TypeScript for the source code, and set up a build process so it can be used as an ESM module or just included with a script tag. Also, create a few simple example pages to show how it works.
Are you gonna build this?
make sure you review the code using coderabbit