Make every element scrolling at different speed
- fast!
- easy API
- works for dynamic added elements
- lightweight < 4k minified
<div u1-parallax style="--u1-parallax-speed:1.1;">faster</div>
<div u1-parallax style="--u1-parallax-speed:1;">normal</div>
<div u1-parallax style="--u1-parallax-speed:0.9;">slower</div>
[u1-parallax] {
background:var(--color-light);
display:inline-block;
padding:.5rem;
}
<script src="https://cdn.jsdelivr.net/gh/u1ui/[email protected]/parallax.min.js" type=module></script>
minimal.html
performance.html
test.html
Parallax scrolling Backgrounds https://github.com/nuxodin/parax-bg
- MIT License, Copyright (c) 2022 (like all repositories in this organization)
- Suggestions, ideas, finding bugs and making pull requests make us very happy. ♥