Package with which you can create a fancy scroll effect on your website.
npm install slides_lea___
This is a very small package with which you can create a simple Slide-Effect on your Website, similar to this preview.
https://www.lea-moser.ch/slides_lea
npm i slides_lea
`
2. Import the package in your project JS file
`javascript
const SLIDES = require('slides_lea');
`
3. To check if it is installed properly run
`javascript
SLIDES.check();
`
If everything work's fine, you should see further instructions in your browser-console.Requirements HTML & CSS
For a good unterstanding of how this package is supposed to work, check out the source code of the example on GitHub.HTML
- The elements you want to apply the effect on should be placed directly into the body or a main container with a height of auto.
CSS
- The elements you want to apply the effect on should all at least have a height of 100vh.
- The elements have to be positioned absolute.
Create Effect
Run the following command and pass the correct items into the function.
`javascript
SLIDES.init('[selector of your elements]');
``