Skip to content

trying to tweak the "Bouncing Text Animation" demo #95

Description

@prescriptionlifeline

I'm trying to modify https://codepen.io/ninonuman/pen/ExporRG by adding an extra word but am having some difficulty doing so.

I added an extra <span class="word slide" data-splitting="chars">hello world</span> to the HTML and in the SCSS changed --duration: calc(var(--interval) * 4); to --duration: calc(var(--interval) * 5);. You can see the end result at https://codepen.io/neubert/pen/NWmvYLB.

The issue I'm having is that the transition between some of the words is not as smooth now. Like for a brief period of time two words will appear on top of one another. eg.

error

Any ideas as to how I might go about fixing this?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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