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

writeit-next doesn't work with react #8

Closed
yasht-007 opened this issue Oct 28, 2021 · 1 comment
Closed

writeit-next doesn't work with react #8

yasht-007 opened this issue Oct 28, 2021 · 1 comment

Comments

@yasht-007
Copy link

yasht-007 commented Oct 28, 2021

Code I used to start all the animations:

useEffect(() => {
     window.WriteItJS.startAnimationOfNode("#first");
});
<p id="first"
            writeit-animate="1"
            writeit-replace-next="Crypto$`currency` Made Easy"
            writeit-next="#second">
            Cryptolitics
</p>

<p id="second" writeit-speed="10">
            Let's get started today to get free cryptocurrency statistics,
            events, and the latest news.
</p>

Even if the second paragraph does not have writeit-animate it starts animating as WriteIt.startAnimation() is called.

@khushit-shah
Copy link
Owner

will be solved with #7

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

2 participants