Skip to content

Rewrite idea #629

@stevenvachon

Description

@stevenvachon
  1. Use splitting.
  2. Use requestAnimationFrame to apply class names to .char (selector) instead of rewriting the container's innerHTML (which is not performant).

Optional:

  • Add duration option, so that animations on content with indefinite length can complete quickly.
  • Add staticSize option, which will prevent container dimension changes while animating by not pulling each character out of flow, and instead only hiding them.

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