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

Can't work it with react #86

Open
nazmul162001 opened this issue Dec 28, 2022 · 3 comments
Open

Can't work it with react #86

nazmul162001 opened this issue Dec 28, 2022 · 3 comments

Comments

@nazmul162001
Copy link

nazmul162001 commented Dec 28, 2022

### I try to use it this way in my react application. But it doesn't work. Please help anyone. It is so essential for me.

import TextLoop from "react-text-loop";

 <div>
           <TextLoop interval={100} springConfig={{ stiffness: 180, damping: 8 }}>
                        <span>Text1</span>
                        <span>Text2</span>
                        <span>Text3</span>
            </TextLoop>
  </div>
@joeyfigaro
Copy link

@nazmul162001 what version of react are you using? This component hasn't been updated in years, so you're likely just using a newer version of react.

@josephgoksu
Copy link

josephgoksu commented Jul 2, 2023

You might have an issue with React version. It doesn't work with 18

This might help @joeyfigaro

@JonathanSouthern
Copy link

This library provides same utility but works for React 18.

https://github.com/WinterCore/react-text-transition

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

4 participants