Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

animations css

window.addEventListener('scroll', () => {
  document.body.style.setProperty('--scroll',window.pageYOffset / (document.body.offsetHeight - window.innerHeight));
}, false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #animations #css
ADD COMMENT
Topic
Name
9+6 =