mirror of
https://github.com/alexfoxy/lax.js.git
synced 2026-04-24 03:01:10 -04:00
Compare commits
2 Commits
ts-upgrade
...
master-v1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7e019fd335 | ||
|
|
7fc92ed6c9 |
13
README.md
13
README.md
@@ -2,14 +2,21 @@
|
||||
|
||||
Simple & light weight (<3kb gzipped) vanilla javascript plugin to create *smooth* & beautiful animations when you scrolllll! Harness the power of the most intuitive interaction and make your websites come alive!
|
||||
|
||||
[>>> DEMO <<<](https://alexfox.dev/laxxx/)
|
||||
[>>> DEMO <<<](https://alexfox.dev/lax.js/)
|
||||
|
||||

|
||||
|
||||
[>>> MARIO DEMO <<<](https://alexfox.dev/laxxx/sprite.html)
|
||||
[>>> MARIO DEMO <<<](https://alexfox.dev/lax.js/sprite.html)
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## lax 2.0
|
||||
For those daring enough ;) there is an alpha version of lax.js 2.0 available. Have a play: https://github.com/alexfoxy/lax.js/tree/version-2
|
||||
|
||||
---
|
||||
|
||||
## Getting Started
|
||||
|
||||
### NPM Setup
|
||||
@@ -225,7 +232,7 @@ Other
|
||||
|
||||
|
||||
## Sprite Sheet Animations
|
||||
You can create animations using sprite sheets. See a demo [here](https://alexfox.dev/laxxx/sprite.html).
|
||||
You can create animations using sprite sheets. See a demo [here](https://alexfox.dev/lax.js/sprite.html).
|
||||
|
||||
The `data-lax-sprite-data` is required and formated like so `[frameWidth, frameHeight, frameCount, columnCount, scrollStep]`. You can either set the image using CSS or the `data-lax-sprite-image` attribute. e.g.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user