Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
prescriptionlifeline opened this issue Mar 27, 2024 · 0 comments
Open

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

prescriptionlifeline opened this issue Mar 27, 2024 · 0 comments

Comments

@prescriptionlifeline
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant