kieuquangloc / iosanimation Goto Github PK
View Code? Open in Web Editor NEWThis project will help you how to make iOS animation
This project will help you how to make iOS animation
1. CAAnimation
CAAnimation provides the basic support for the CAMediaTiming and CAAction protocols. You do not create instance of CAAnimation: to animate Core Animation layers or SceneKit objects, create instances of the concrete subclasses CABasicAnimation, CAKeyframeAnimation, CAAnimationGroup, or CATransition.

a. CAPropertyAnimation:
* An abstract subclass of CAAnimation for creating animations that manipulate the value of layer properties.
b. CABasicAnimation:
c. CAKeyframeAnimation:
2. Animation Groups
a. CAAnimationGroup:
* An object that allows multiple animations to be grouped and run concurrently.
* If you want to apply multiple animations to a layer object simultaneously, you can group them together using a CAAnimationGroup object. Using a group object simplifies the management of multiple animation objects by providing a single configuration point. Timing and duration values applied to the group override those same values in the individual animation objects. For example below the link: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/CreatingBasicAnimations/CreatingBasicAnimations.html
b. CATransaction
* CATransaction is the Core Animation mechanism for batching multiple layer-tree operations into atomic updates to the render tree. Every modification to a layer tree must be part of a transaction. Nested transactions are supported.
* Advanced CATransition Tricks : https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/AdvancedAnimationTricks/AdvancedAnimationTricks.html#//apple_ref/doc/uid/TP40004514-CH8-SW1
** 3. Animation time**
Layer objects are 2D surfaces organized in a 3D space and are at the heart of everything you do with Core Animation. Like views, layers manage information about the geometry, content, and visual attributes of their surfaces. Unlike views, layers do not define their own appearance.More detail about layer: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/CoreAnimationBasics/CoreAnimationBasics.html#//apple_ref/doc/uid/TP40004514-CH2-SW19.
Core Animation optimizes the caching of layer contents and fast drawing directly on the GPU.
A layer is a model object – it exposes data properties and implements no logic. It has no complex Auto Layout dependencies nor does it handle user interactions.
To compare views and layers side by side, we have a table:

1. CALayer
** 2. CALayerDeleagte**
▪ You can implement the methods of this protocol to provide the layer’s content, handle the layout of sublayers, and provide custom animation actions to perform. The object that implements this protocol must be assigned to the delegate property of the layer object.
3. CAConstraint
4. CAAction
5. CALayoutManager
▪ Methods that allow an object to manage the layout of a layer and its sublayers.
6. CAConstraintLayoutManager
• An object that provides a constraint-based layout manager.
7. CATransform
Every layer has two transform matrices that you can to manipulate the layer.
1. AnimationWithBlocks (UIViewAnimationWithBlocks)
2. AnimateKeyframes (UIViewKeyframeAnimations)
3. Animations with UIViewPropertyAnimator
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.