daehn / chainedanimation Goto Github PK
View Code? Open in Web Editor NEWChain multiple animations with different delays.
License: MIT License
Chain multiple animations with different delays.
License: MIT License
This library needs to be updated to Swift 4.
Hello, the ChainedAnimation v3.0.0 apparently not in Cocoapods repositories.
Do you have any idea when it will be published?
Regards.
hello, I'm trying to change some width constraints in chain animation but I'm having some problems:
UIView.beginAnimationChain(0.3) {
self.enterWidthConstraint.isActive = true
self.enterWidthConstraint.constant = self.view.frame.width
self.enterEqualWidthConstraint.isActive = false
print("now 1")
print(self.enterWidthConstraint.constant)
}.chainAfterCompletion(0.25, delay: 2.0, options: [], animations: {
print("now 2")
self.enterWidthConstraint.constant = 0
print(self.enterWidthConstraint.constant)
}).animate()
the output gets printed all together:
now 1
375.0
now 2
0.0
The self.enterWidthConstraint.constant = 0 needs to be set after the first animation. This happens immediately ๐
This could be done by implementing a new method like appendNewChain(duration: delay: options: animations:)
on the AnimationChain
struct. The function would have to execute all animations after it in the chain in the completion closure of the previous chain.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.