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

[QUESTION] SKLottieView - Animation speed #281

Open
nk-alex opened this issue May 17, 2024 · 2 comments
Open

[QUESTION] SKLottieView - Animation speed #281

nk-alex opened this issue May 17, 2024 · 2 comments
Labels

Comments

@nk-alex
Copy link

nk-alex commented May 17, 2024

Just wondering how can I set the animation speed. Would be cool to have a property to set it.

@nk-alex nk-alex changed the title [QUESTION] Animation speed [QUESTION] SKLottieView - Animation speed May 17, 2024
@IeuanWalker
Copy link
Contributor

Just came across this issue migrating from XF

@JohnTraDolta
Copy link

Not ideal, but i found a workaround. You can manually animate the progress in the codebehind like this

new Animation(
            d => AnimationView.Progress = TimeSpan.FromMilliseconds(d),
            0,
            AnimationView.Duration.TotalMilliseconds,
            Easing.Linear
        ).Commit(AnimationView, "Accept", length: 500);

AnimationView is my SKLottieView.
Then you just have to adjust length to taste. Hope it helps you <3

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

No branches or pull requests

3 participants