Skip to content

docs: animation.md claims arbitrary animate-[...] syntax works, but AnimationParser does not implement it #83

@anilcancakir

Description

@anilcancakir

Where

doc/interactivity/animation.md lines 117-124 (the Arbitrary Values section).

Problem

The doc shows:

WDiv(className: 'animate-[wiggle_1s_ease-in-out_infinite]')

and says "If the built-in animations don't quite fit, you can use arbitrary values to specify custom animation strings."

But AnimationParser (lib/src/parser/parsers/animation_parser.dart) only does a context.theme.animations.containsKey(className) map lookup. There is no regex or bracket-syntax handler for animate-[<spec>]. So this code sample silently no-ops.

Expected

Either:

  • Remove the Arbitrary Values section (docs-only fix), and steer users to the Customizing Theme section right below it, which IS the correct extension path, OR
  • Implement the bracket-syntax parsing (out of scope for this issue).

As reported the docs lie about a feature that does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions