Skip to content

Documentation errors in 02-utilities.md: invalid --animation-duration and non-existent animate__repeat #1931

Open

Description

@sujlcodes

Describe The Bug

In docsSource/sections/02-utilities.md:

  1. Line 65:

    "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.

  2. 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.

  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

  1. Follow the documentation and add :root { --animation-duration: 4s; }.
  2. Trigger any animation class (e.g. animate__animated animate__bounce).
  3. Notice the animation still plays at the default duration of 1s because the CSS variable is --animate-duration.
  4. 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

  1. Replace --animation-duration with --animate-duration in line 65.
  2. Update line 82 to reference animate__repeat-1, animate__repeat-2, animate__repeat-3.
  3. Add animate__delay-1s to the delay classes table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions