SkiaSharp.Extended icon indicating copy to clipboard operation
SkiaSharp.Extended copied to clipboard

[QUESTION] SKLottieView - Animation speed

Open nk-alex opened this issue 1 year ago • 2 comments

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

nk-alex avatar May 17 '24 09:05 nk-alex

Just came across this issue migrating from XF

IeuanWalker avatar Jun 06 '24 10:06 IeuanWalker

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

JohnTraDolta avatar Aug 29 '24 08:08 JohnTraDolta