Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

animation on scroll css

svg {
  position: fixed; /* make sure it stays put so we can see it! */

  animation: rotate 1s linear infinite;
  /*animation-play-state: paused;*/
  animation-delay: calc(var(--scroll) * -1s);
}
Source by css-tricks.com #
 
PREVIOUS NEXT
Tagged: #animation #scroll #css
ADD COMMENT
Topic
Name
8+5 =