lax.js
//Install
$ npm install lax.js
import lax from 'lax.js'
//Add to the html
<script src="lib/lax.min.js" >
// or via CDN
<script src="https://cdn.jsdelivr.net/npm/lax.js" ></script>
//Initialize it
window.onload = function() {
lax.setup() // init
const updateLax = () => {
lax.update(window.scrollY)
window.requestAnimationFrame(updateLax)
}
window.requestAnimationFrame(updateLax)
}
//Add to the class that you want to animate
<p class="lax" data-lax-preset="spin fadeInOut">Look at me goooooo!</p>
Also in JavaScript:
- push item to array js
- shadow class angular
- json vs gson
- dark mode with react hooks
- javascript extract number from string
- javascript date minus seconds
- react native app crashes without error
- Javascript convert html entity to string
- ternaire javascript
- javascript toFixed
- linux command to install standard js
- aws lambda dynamodb nodejs scan
- javascript pass by reference
- js data object length
- how to create tab component in jquery
- node js mongoose async await
- Javascript object to JSON string
- Trouble setting up sample table. “Could not find matching row model for rowModelType clientSide”
- js get url parameter
- how to select a class and then change the children of that class with javascript
- price range slider bootstrap 4
- discord js role permissions
- app.js:38650 [Vue warn]: Failed to mount component: template or render function not defined
- js fill string with n characters