function noTransitionFound(styles) {
          styles = styles || window.getComputedStyle(element[0]);

          return styles.transitionDuration == '0s' || (!styles.transition && !styles.transitionProperty);
        }
function noTransitionFound(styles) {
          styles = styles || window.getComputedStyle(element[0]);

          return styles.transitionDuration == '0s' || (!styles.transition && !styles.transitionProperty);
        }
function noTransitionFound ( styles ) { styles = styles || window . getComputedStyle ( element [ 0 ] ) ; return styles . transitionDuration == '0s' || ( ! styles . transition && ! styles . transitionProperty ) ; }
Checks whether or not there is a transition.

@param styles The cached styles to use for the calculation. If null, getComputedStyle()
will be used.

@returns {boolean} True if there is no transition/duration; false otherwise.
Checks whether or not there is a transition .
Check if the element has no transition