Skip to content

[scroll-animations-1] animation-range vs animation-duration #8405

Closed
@fantasai

Description

@fantasai

If animation-range-start, animation-range-end, and animation-duration are all set, and duration doesn't exactly match the available range, what do we do?

Options proposed so far:

  • Ignore animation-range-end.
  • Ignore animation-duration.
  • Take the smaller duration.

Related question: if animation-duration and animation-range-end are given but not animation-range-start, do we:

  • define the range as the normal timeline start through the specified range end? (pins the duration at the start of the timeline)
  • scope the animation to the given duration, pin it to the specified animation-range-end, and calculate the used value of animation-range-start accordingly?

Fwiw, my original interpretation was that the animation-range properties each (independently) cut the timeline down to a particular segment, and then duration and delay play within that segment instead of within the whole timeline.

An alternative view would be that animation-range is similar to inset, delay to padding or margin, and duration to width, and they operate as a set at the same time.

Which worldview do we want to go with? (Or something else?)

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