This repository has been archived by the owner on Dec 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
Entrance Animation
Samuel Spencer edited this page Aug 3, 2017
·
10 revisions
Graphs with BEMSimpleLineGraph are drawn with an animation by default.
The animationGraphEntranceSpeed
property is a CGFloat which value indicates the time in seconds of the entrance animation.
Its default value is 1.5, meaning that the animation drawing the graph will last for 1.5 seconds.
self.myGrpah.animationGraphEntranceSpeed = 1.5;
The property animationGraphStyle
controls the type of animation to be used. Here is a full list of the available styles:
-
BEMLineAnimationDraw (Default)
The draw animation style is pictured above. The graph is "drawn-in" from left to right. -
BEMLineAnimationFade
The fade animation simply fades the graph from an opacity of 0% to an opacity of 100%. -
BEMLineAnimationNone
No animation will be made when loading or reloading the graph.