Skip to content

[scroll-animations-1] What's the point of animation-range? #7901

Closed
@Loirooriol

Description

@Loirooriol

https://w3c.github.io/csswg-drafts/scroll-animations/#named-range-animation-declaration

The animation-delay and animation-range properties are both shorthands that set animation-delay-start and animation-delay-end together in a single declaration.

What's the point of having 2 shorthands if both have the same grammar and expand to the same set of longhands in the same way?

@cdoublev also confused in #7044 (comment)

@bramus said

Otoh I do understand the need for animation-range: it is more readable in the content of scroll-linked animations. E.g. animation-range: exit is easier to grasp than animation-delay: exit.

But then maybe restrict animation-delay to <time>{1,2}# and animation-range to [ <timeline-range-name> <percentage>? ]{1,2}# or something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions