daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Mar 8th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var root = document.querySelector(':root');
  2. var rootStyles = getComputedStyle(root);
  3. var red = rootStyles.getPropertyValue('--red');
  4.  
  5. root.style.setProperty('--red', 'green');
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top