canCssTransition.js

July 03, 2021

Returns whether browser supports animation using CSS transitions.

/**
 * Returns whether browser supports animation using CSS transitions.
 * [CSS transitions](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transitions).
 * 
 * (c) 2021 Onur Boz, Boz, MIT License, https://onurboz.com/mit
 * 
 * @function canCssTransition
 */
function canCssTransition () {
  return 'transition' in document.documentElement.style;
};