Sobre
Luge
Ferramentas de desenvolvimentoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- Coletando histórico
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Originalluge
Front-end animation plugin for uncreative developers.
- Preview: https://luge.cool
- Documentation: https://luge.cool/docs/
Usage
luge is made to be fast and easy to use. Most of the things happen under the hood so you just have to include the files to start using it:
<link rel="stylesheet" href="/path/to/luge.css">
<script src="/path/to/luge.umd.js"></script>
Include the CSS for built-in reveals, preloaders, transition loaders, cursor styling and Lenis integration, or provide equivalent styles yourself.
If you want to use tree shaking to import only the functionalities you need and lighten the output build, luge is also available as a npm package:
npm install @waaark/luge
Then import what you need:
// Import core and plugins
import {
Preloader,
Reveal,
Transition,
ScrollAnimation,
SmoothScroll,
Cursor,
Intersection,
LottiePlayer,
MouseAnimation,
Parallax,
Browser,
Luge
} from '@waaark/luge'
import '@waaark/luge/css'
// Create luge instance
const luge = new Luge()
// Add only the plugin you need
luge.addPlugin('preloader', Preloader)
luge.addPlugin('reveal', Reveal)
luge.addPlugin('transition', Transition)
luge.addPlugin('scroll', ScrollAnimation)
luge.addPlugin('smooth', SmoothScroll)
luge.addPlugin('cursor', Cursor)
luge.addPlugin('intersection', Intersection)
luge.addPlugin('lottie', LottiePlayer)
luge.addPlugin('mouse', MouseAnimation)
luge.addPlugin('parallax', Parallax)
luge.addPlugin('browser', Browser)
// Configure the settings
luge.settings({
cursor: {
disabled: luge.browser.some(['tablet', 'mobile'])
},
smooth: {
disabled: luge.browser.some(['tablet', 'mobile']) || luge.browser.satisfies({ safari: '<=12' })
}
})
// And init
luge.init()
That's it.
The next thing to do is to add luge data-lg-... attributes in your html to start using luge features, as explained in the documentation.
Building the library
Use Node 22.23.4 and npm:
npm ci
npm run build
src/ contains the library source and dist/ contains its distributable JavaScript and CSS. site/ contains the built documentation and demos, ready for static hosting.
This repository distributes maintained releases. Unsolicited pull requests and contributions are not accepted.
See CHANGELOG.md for release notes. Licensed under GPL-3.0-only.
Explore projetos relacionados
Carregando…