Comments (7)
Can you reset an animation by using 'animationProgress = 0.0'?
from lottie-ios.
@nlogioco Yeah that should work! is it not working?
from lottie-ios.
@buba447
It is. I realized if 'animationProgress' is set before 'play' it'll go to that progress spot via animation. If 'animationProgress' is set after play, it'll cancel the animation and go back to beginning and not play.
I have noticed something weird (not sure if it is by design):
animation.animationProgress = 0.9
animation.play()
Expected results v1:
Start the animation at 0% completed
End the animation at 90% completed
Expected results v1:
Start the animation at 90% completed
End the animation at 100% completed
Actual results:
Start the animation at 0% completed
End the animation at 10% completed
from lottie-ios.
Hmm thats very strange @nlogioco
Is the animation.animationProgress = 0.9 animation.play()
happening before or after you've added it to a superview? Can I get more context?
from lottie-ios.
I add it to the superview before setting the properties.
What would you recommend?
from lottie-ios.
@nlogioco I think i found a fix. I push pushed it to master.
from lottie-ios.
@nlogioco Please check it out and let me know if it didn't work!
from lottie-ios.
Related Issues (20)
- Warning in Xcode when using Lottie 4.4.0 with cocoa pods HOT 1
- LottieAnimationView layout stuck in infinite loop HOT 5
- Completion Closure Not Called in CA Mode Like in Main Thread Mode HOT 1
- LottieView.animationDidFinish not called correctly when background behavior is set to continue playing
- Lottie missing elements in Animation HOT 3
- SPM fails to compile when lottie-spm is added via SPM Package.swift file HOT 1
- module map 'xxx/lottie-ios/Lottie.modulemap' not found HOT 2
- can't clone Lottie iOS on cocoa pods HOT 2
- lottie-spm fails builds in GitHub Actions
- Lottie animation freezes whole app on 4.4.0/4.4.1 (works fine on 4.3.1) HOT 1
- Lottie animation freezes whole app on 4.4.0/4.4.1 (works fine on 4.3.1) HOT 1
- Password with a space is being used while joining the network using airbnb app
- Troubleshooting Lottie Integration Errors in GitHub Actions CI/CD Pipeline HOT 2
- The signature of “Lottie.xcframework” cannot be validated and may have been compromised. HOT 4
- SPM: skipping cache due to an error HOT 1
- CFBundleShortString does not reflect the Lottie version HOT 3
- iOS17 privacy Policy
- Doesn't work well in SwiftUI
- 从2.2.5升级到4.4.1 lottie,相同lottie资源,4.4.1动画有问题,之前的没有问题 HOT 4
- 求助怎么修复卡顿 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lottie-ios.