Advertisement
Guest User

iinfo carousel

a guest
Apr 26th, 2014
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Carousel
  3. // @namespace   iinfo
  4. // @include     *root.cz*
  5. // @version     1
  6. // @grant       none
  7. // ==/UserScript==
  8.  
  9. (function() {
  10.     function css(rules) {
  11.         rules = rules instanceof Array ? rules.join('\n') : rules;
  12.         var head = document.head || document.getElementsByTagName('head')[0];
  13.         var style = document.createElement('style');
  14.         style.type = 'text/css';
  15.         if (style.styleSheet)
  16.             style.styleSheet.cssText = rules;
  17.         else
  18.             style.appendChild(document.createTextNode(rules));
  19.         head.appendChild(style);
  20.     }
  21.  
  22.     css([
  23.         '#promo-footerPromo {',
  24.         '    -webkit-transition: opacity 0.3s;',
  25.         '    -moz-transition: opacity 0.3s;',
  26.         '    -ms-transition: opacity 0.3s;',
  27.         '    transition: opacity 0.3s;',
  28.         '    opacity: 0.05;',
  29.         '}',
  30.         '#promo-footerPromo:hover {',
  31.         '    opacity: 1;',
  32.         '}'
  33.     ]);
  34. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement