Skip to content

Instantly share code, notes, and snippets.

@anton-chernianu
Created September 18, 2018 11:45
Show Gist options
  • Save anton-chernianu/7c0bc48c984f7e6b4ec346b1d1e991e6 to your computer and use it in GitHub Desktop.
Save anton-chernianu/7c0bc48c984f7e6b4ec346b1d1e991e6 to your computer and use it in GitHub Desktop.
GSAP Position window %
const vw = (coef) => window.innerWidth * (coef/100);
const vh = (coef) => window.innerHeight * (coef/100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment