Tailwind css Features #18827
petersam6636-web
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Tailwind CSS Feature Request Prompt (with Suggestions)
"Please add support in Tailwind CSS for advanced animation utilities. These should include:
Timing Functions: ease, linear, steps, and custom cubic-bezier values.
Iteration Count: options like once, infinite, and custom numbers (e.g., 3).
Animation Duration: more flexible values (e.g., 3s, 1500ms).
Animation Delay: e.g., delay-500ms, delay-2s.
Animation Fill Mode: forwards, backwards, both.
Animation Direction: normal, reverse, alternate.
Animation Play State: control with paused and running.
Box Shadows: with custom offsets, blur, spread, and colors (e.g., shadow-[6px_6px_8px_green]).
Drop Shadows: with similar extended control.
Preset Keyframes: built-in fade-in, slide, bounce, rotate, pulse, grow, shrink, and zoom.
💡 My Suggestions:
Allow multiple animations on one element using class chaining.
Introduce animate-once, animate-thrice, etc. for readability.
Support shadow-color as a separate utility like shadow-green-500.
Provide motion-safe variants (e.g., motion-safe:animate-bounce).
Add utility generators for custom keyframes directly in config (e.g., animate-[wiggle_1s_ease-in-out_infinite]).
Beta Was this translation helpful? Give feedback.
All reactions