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 github.com #
 
PREVIOUS NEXT
Tagged: #animations #css
ADD COMMENT
Topic
Name
7+9 =