Skip to content

Conversation

@duarte-pompeu
Copy link
Contributor

In the previous code, using a higher value for speed caused the typewriter effect to happen slower.

This PR changes this function to implement a more intuitive behavior: a higher value for speed causes it to type quicker. Additionally, I was testing the out transition and was surprised it worked out of the box, so I included it in the examples.

Demonstration

Previously

svelte_example_original.mp4

After this PR

svelte_example_pr.mp4

@duarte-pompeu
Copy link
Contributor Author

First time contributing to the project - not sure how important this is but it feels like an improvement to me.

Please let me know if there's anything I should change for the PR to be merged.

@benmccann
Copy link
Member

this PR would need to be rebased

@Conduitry Conduitry marked this pull request as draft August 20, 2021 18:27
@duarte-pompeu duarte-pompeu marked this pull request as ready for review August 21, 2021 13:48
@duarte-pompeu
Copy link
Contributor Author

this PR would need to be rebased

Thanks for the heads up, I updated it.

@benmccann benmccann merged commit 8d3f451 into sveltejs:master Aug 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants