Skip to content

[ScrollAnimation] Refactor exported components #441

@titouanmathis

Description

@titouanmathis

The ScrollAnimation family of components is large and can be confusing between the ScrollAnimation, ScrollAnimationParent, ScrollAnimationChild, ScrollAnimationWithEase, etc.

Suggestions

  • Remove animationScrollWithEase, ScrollAnimation, ScrollAnimationWithEase and ScrollAnimationChildWithEase
  • Rename ScrollAnimationParent to ScrollAnimationTimeline
  • Rename ScrollAnimationChild to ScrollAnimationTarget

This can be done in v1.x without breaking change by deprecating the components to remove and create aliases for the new names.

Pros

  • 2 components instead of 6
  • a single way of using these 2 components instead of switching from ScrollAnimationChild to using data-ref="target" as target of the animation

Cons

  • removing the components will be a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions