You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal to add support for staggered animations in the library, allowing for incremental delays on list or grid items.
This feature would enable smoother and more appealing animation effects without relying on manual utilities or JavaScript.
Thank you for considering this request!
The text was updated successfully, but these errors were encountered:
vishwamartur
added a commit
to vishwamartur/tailwindcss-motion
that referenced
this issue
Dec 24, 2024
Related to romboHQ#15
Add support for staggered animations with incremental delays for list or grid items.
* **src/modifiers.js**
- Add a new utility `motion-stagger` to handle staggered delays for multiple elements.
- Update the `motion-delay` utility to support staggered delays.
- Add a new theme configuration for `motionStagger` with predefined values.
* **README.md**
- Add documentation for the new `motion-stagger` utility.
- Provide usage example for staggered animations.
I'd love to add this feature, but I'm not sure how to do it with CSS. Maybe in the future, we can use something like sibling-index(), but for now, it's not supported. If anyone has an idea on how to implement it, I'd love to hear it. In the meantime, I think the best way to do this is with CSS variables, something like this: https://x.com/k_grajeda/status/1843388113017835644
Proposal to add support for staggered animations in the library, allowing for incremental delays on list or grid items.
This feature would enable smoother and more appealing animation effects without relying on manual utilities or JavaScript.
Thank you for considering this request!
The text was updated successfully, but these errors were encountered: