so
motus
so | motus | |
---|---|---|
1 | 1 | |
18 | 633 | |
- | - | |
2.7 | 0.0 | |
4 months ago | 12 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
so
-
Lightweight way of detecting scroll direction
// https://github.com/qeremy/so/blob/master/so.dom.js#L426 let prevScrollTop = window.pageYOffset || document.documentElement.scrollTop; let prevScrollDirection = ''; window.addEventListener('scroll', function() { const st = window.pageYOffset || document.documentElement.scrollTop; if (st > prevScrollTop && prevScrollDirection !== 'down') { // downscroll code here prevScrollDirection = 'down'; } else if (st < prevScrollTop && prevScrollDirection !== 'up') { // upscroll code prevScrollDirection = 'up'; } prevScrollTop = st <= 0 ? 0 : st; // for Mobile or negative scrolling }, false);
motus
-
Web Effect
Motus - Animation library that mimics CSS keyframes when scrolling.
What are some alternatives?
animatable - One property, two values, endless possiblities
the-cube - The Cube is an experiment with CSS3 transitions.
AniX - 🐿 Super easy and lightweight(<3kb) JavaScript animation library
animate.css - 🍿 A cross-browser library of CSS animations. As easy to use as an easy thing.
bounce.js - Create beautiful CSS3 powered animations in no time.
GreenSock-JS - GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
react-awesome-reveal - React components to add reveal animations using the Intersection Observer API and CSS Animations.
Vizzu - Library for animated data visualizations and data stories.
Mo.js - The motion graphics toolbelt for the web
move.js - CSS3 backed JavaScript animation framework
particles.js - A lightweight JavaScript library for creating particles
particles-bg - React particles animation background component