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
{{ message }}
Repository navigation
Documentation errors in 02-utilities.md: invalid --animation-duration and non-existent animate__repeat #1931
"As we used the CSS calc() function, setting the duration through the --animation-duration property will respect these ratios."
The actual CSS variable defined in source/_vars.css and used in source/_base.css is --animate-duration, not --animation-duration. Users attempting to set --animation-duration will find that animations ignore it.
Line 82:
"As with the delay and speed classes, the animate__repeat class is based on the --animate-repeat property and has a default iteration count of 1."
There is no animate__repeat class; the actual classes are animate__repeat-1, animate__repeat-2, and animate__repeat-3.
Delay Table (lines 15–20):
The table lists animate__delay-2s through 5s, omitting animate__delay-1s which exists in source/_base.css.
Steps To Reproduce
Follow the documentation and add :root { --animation-duration: 4s; }.
Trigger any animation class (e.g. animate__animated animate__bounce).
Notice the animation still plays at the default duration of 1s because the CSS variable is --animate-duration.
Add class animate__repeat to an element. Notice no iteration count property is applied.
Expected Behavior
The documentation should accurately instruct users to use --animate-duration and animate__repeat-1 / 2 / 3.
Screenshots
No response
Desktop
No response
Smartphone
No response
Additional Context
Replace --animation-duration with --animate-duration in line 65.
Update line 82 to reference animate__repeat-1, animate__repeat-2, animate__repeat-3.
Activity