Methods
-
<static> getCurrentMatrix(element) → {caph.math.Matrix4}
-
Gets current matrix from the given element.
Parameters:
Name Type Description element
HTMLElement A HTML element.
- Since:
-
- 2.0.0
Returns:
- Type
- caph.math.Matrix4
Example
var matrix = caph.animation.util.getCurrentMatrix(document.getElementById('id'));
-
<static> getCurrentOpacity(element) → {Number}
-
Gets current opacity from the given element.
Parameters:
Name Type Description element
HTMLElement A HTML element.
- Since:
-
- 2.0.0
Returns:
- Type
- Number
Example
var opacity = caph.animation.util.getCurrentOpacity(document.getElementById('id'));
-
<static> initCurrentMatrix(element)
-
Initializes the current matrix of the given element.
Parameters:
Name Type Description element
HTMLElement A HTML element.
- Since:
-
- 2.0.0
Example
caph.animation.util.initCurrentMatrix(document.getElementById('id'));
-
<static> initCurrentOpacity(element)
-
Initializes the current opacity of the given element.
Parameters:
Name Type Description element
HTMLElement A HTML element.
- Since:
-
- 2.0.0
Example
caph.animation.util.initCurrentOpacity(document.getElementById('id'));
-
<static> setCurrentMatrix(element, matrix)
-
Sets the given matrix to the given element.
Parameters:
Name Type Description element
HTMLElement A HTML element.
matrix
caph.math.Matrix4 A new matrix.
- Since:
-
- 2.0.0
Example
caph.animation.util.setCurrentMatrix(document.getElementById('id'), new caph.math.Matrix4());
-
<static> setCurrentOpacity(element, opacity)
-
Sets the given opacity to the given element.
Parameters:
Name Type Description element
HTMLElement A HTML element.
opacity
Number A new opacity.
- Since:
-
- 2.0.0
Example
caph.animation.util.setCurrentOpacity(document.getElementById('id'), 1);