Comments (9)
Interface
@interface ANYAnimation (Operators)
- (instancetype)before:(dispatch_block_t)before;
- (instancetype)after:(dispatch_block_t)after;
@end
Usage
[[anim before:^{
[view addSubview:maskView];
}] after:^{
[maskView removeFromSuperview];
}];
from anymotion.
finally
feels like something that will be done under all circumstances - like a try-catch block, but I support @kostiakoval.
from anymotion.
I want to know which name is better. Please vote.
from anymotion.
Interface
@interface ANYAnimation (Operators)
- (instancetype)initially:(dispatch_block_t)initially;
- (instancetype)finally:(dispatch_block_t)finally;
@end
Usage
[[anim initially:^{
[view addSubview:maskView];
}] finally:^{
[maskView removeFromSuperview];
}];
from anymotion.
RAC uses initially
and finally
on 2.5
from anymotion.
what is latest RAC version? How about other libs like Rx and POP. And most important UIKit and CoreAnimation, because it's Apple :)
from anymotion.
Well Apple is probably more along the line of
Interface
@interface ANYAnimation (Operators)
- (instancetype)willStart:(dispatch_block_t)willStart;
@end
Usage
[[anim willStart:^{
[view addSubview:maskView];
}] complete:^(BOOL success){
[maskView removeFromSuperview];
}];
from anymotion.
@hfossli What's the status here? Looks like before
and after
is implemented?
from anymotion.
Yep, I am not 100% satisfied. It somehow felter weird. It might be better to rename them. Let's close this and reopen a new one later.
from anymotion.
Related Issues (20)
- Support for carthage
- Add operator: `+[ANYAnimation chain:]`
- Add operator: `-[ANYAnimation onStart:]`
- Remove `next`
- Move POP code to either a subdependency or a separate repo HOT 1
- Shortcomings HOT 1
- ANYCAKeyframe values in swift assumed to not work properly
- Some properties missing from ANYCABasic
- I don't like this library because... HOT 6
- Factory for core animation HOT 1
- I like this library because... HOT 4
- Optional facebook/pop HOT 1
- Factory for UIKit HOT 1
- Add operator: `repeat:n`
- Change init of pop factories HOT 2
- Investigate wether factories should inherit from `ANYAnimation`
- Xcode playground
- Add beautiful examples to the readme HOT 1
- Add list of many different examples HOT 2
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 anymotion.