summaryrefslogtreecommitdiff
path: root/spec/disable_css_animation.js
blob: b26676d2e98427402c0431961230a199859860ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* eslint-disable */
// Disable eslint because capybara does not know es6

var disableAnimationStyles = '-webkit-transition: none !important;' +
                             '-moz-transition: none !important;' +
                             '-ms-transition: none !important;' +
                             '-o-transition: none !important;' +
                             'transition: none !important;'

window.onload = function() {
  var animationStyles = document.createElement('style');
  animationStyles.type = 'text/css';
  animationStyles.innerHTML = '* {' + disableAnimationStyles + '}';
  document.head.appendChild(animationStyles);
};