code: function noTransitionFound(styles) {
            styles = styles || window.getComputedStyle(element[0]);
  
            return styles.transitionDuration == '0s' || (!styles.transition && !styles.transitionProperty);
          }
docs: 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.