@@ -204,15 +204,15 @@ const eventBoundAnimations = (() => {
204
204
} ) ( ) ;
205
205
206
206
/**
207
- * Verifies if an element is out of its original orientation.
207
+ * Verifies if an element is out of its original orientation or scale .
208
208
*
209
209
* Note that if the element has CSS property 'transform: rotate(0deg)',
210
- * checkRotation () will still return False, as the element is not
210
+ * checkTransform () will still return False, as the element is not
211
211
* out of its original orientation.
212
212
* @param {HTMLElement|string } selector - An element or a valid CSS selector corresponding to the element
213
213
* @returns True if the element was rotated from its original orientation. False if it maintains the original orientation.
214
214
*/
215
- const checkRotation = selector => {
215
+ const checkTransform = selector => {
216
216
const el = selectElement ( selector ) ;
217
217
const transform = getComputedStyle ( el ) . transform ;
218
218
return transform !== 'none' && transform !== 'matrix(1, 0, 0, 1, 0, 0)' ;
@@ -256,7 +256,7 @@ const verifyAnimationName = {
256
256
/**
257
257
* An API encapsulating all the functions that can be used by the user,
258
258
* like all the animations functions and auxiliary functions like
259
- * isRotated (), isVisible() and isHidden()
259
+ * isTransformed (), isVisible() and isHidden()
260
260
* @type {Object.<string, Function|Object> }
261
261
*/
262
262
const jsCssAnimations = ( function ( ) {
@@ -307,7 +307,7 @@ const jsCssAnimations = (function () {
307
307
...opts ,
308
308
} ) ;
309
309
} ,
310
- isRotated : checkRotation ,
310
+ isTransformed : checkTransform ,
311
311
/**
312
312
* @param {Element|string } selector - Dom element or a valid CSS selector
313
313
* @returns True if the element is visible, False otherwise
0 commit comments