slider-df

1.2.1 • Public • Published

slider-df

a slider package to help create animations on scoll

Instructions


  • first install the package with npm install slider-df

  • import it in your javascript and execute it simple for now.

  • for elements you intend to add simple animation to on scroll add a class name 'hidden-df'

  • example

html

<p class="hidden-df">Hello</p>

javascript

import slider from "slider-df";

slider();
  • additionals options are aso provided to change the duration and filter of the element when animating

javascript

import slider from "slider-df";

slider(
{
	options: {
		duration: 2, // in seconds
		filter: 5, // in pixels
	}
}
);
  • new features will continue to be added, suggestions are welcome slider-df@devfate.com

Package Sidebar

Install

npm i slider-df

Weekly Downloads

1

Version

1.2.1

License

ISC

Unpacked Size

3.48 kB

Total Files

3

Last publish

Collaborators

  • devfate