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

How to animate specific part #47

Open
Manthan-p opened this issue Sep 21, 2021 · 1 comment
Open

How to animate specific part #47

Manthan-p opened this issue Sep 21, 2021 · 1 comment

Comments

@Manthan-p
Copy link

Hello,

I want to animate the specific part of the Logo, I have used the react-lottie-player package and put all the necessary props.

Here below, is the code that I have integrated. I want to animate only the last character of my logo.

<Lottie
     loop
     animationData={animationData.default}
     play
     segments={[0,80]}
     style={{ width: 150, height: 100 }}
   />

in animationData.default I have passed the JSON of the logo.

Can you please help me to get the expected output?

@mifi
Copy link
Owner

mifi commented Sep 23, 2021

See the live example:
https://mifi.github.io/react-lottie-player/

Segments works there. Maybe you can start from that code and replace with your own animation?

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