Flip
Flip
The flip is simple way to flip an item, it create dynamically every block that is needed to work
Note: this class use animations functions: make sure you called the module part: Functional Animation before use it.
How to Initialize the Flip ?
The initialization of the flip animation is an one step process, just call the function Init of the class with his three arguments (see above for more details)
Class Details
Functions:
Name |
Arguments |
Return |
Description |
Init |
|
VOID |
This function Initialized every part of the flip: HMTL and the base CSS. It will generate in the defined ID as ID and all HTML IDs used for this timeline will start by the name defined in arguments |
AddData |
VOID |
Call this function to add new data in one of the two sides. |
|
ChangeCSS |
VOID |
Call this function to change the CSS of the flip. |
|
ChangeChildrenCSS |
VOID |
Is functions is used to modify the CSS of children in the sides. |
|
flip |
|
VOID |
This function is used to process the flipping animation, you can either define the side to go or just call the function without arguments and it will switch state Note: that you can't go back to state: NONE. |
Enumerations:
Name |
List |
Description |
modulesList |
|
This is the different flipping sides. |
Private Details
/!\/!\/!\/!\ All private details are usable but its recommended to not use anythings of those. It might modify the good working of the class. /!\/!\/!\/!\
Variables (Members):
Name |
Type |
Default Value |
Description |
basedId |
String |
null |
HTML Id of the viewer parent. |
id |
String |
null |
Global HMTL Id of the viewer (# + name). |
name |
String |
null |
Name of the viewer used by the class for all HTML IDs |
animationSpeed |
Integer |
null |
Define the flipping animation speed |
activeSide |
NONE |
Hold the active side of the flipping |
Functions:
Name |
Arguments |
Return |
Description |
FlipAnimation (Animation Function) |
|
None |
This function is called to update the flipping animation. |
GetFrontID |
|
String - HTML ID of the Front div |
Function used to get the HTML ID of the front div (used to short the code). |
GetBackID |
|
String - HTML ID of the Back div |
Function used to get the HTML ID of the back div (used to short the code). |
Created with the Personal Edition of HelpNDoc: Full-featured EPub generator