bissolli / jquery-revealer

Simple lightweight jQuery plugin to reveal elements on scrolling

Home Page:https://bissolli.github.io/jquery-revealer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jQuery Revealer

Simple lightweight jQuery plugin to reveal elements on scrolling - DOCS

npm npm npm GitHub stars gzip size

Getting Started

1. Install package using NPM or download it from the repository;

npm install jquery-revealer --save

2. Require jQuery and Revealer

<script src="jquery.min.js"></script>
<script src="jquery.revealer.min.js"></script>

or

require('jquery');
require('jquery-revealer');

3. Include animate.css

<head>
    ...
    <link rel="stylesheet" href="animate.min.css">
    ...
</head>

4. Add data attributes

<div data-animate="fadeInUp" data-duration="1.0s" data-delay="0.1s" data-iteration="1">see animation</div>

5. Call Revealer

$('[data-animate]').revealer();

JavaScript Options

$('[data-animate]').revealer({
    mobile: false // disable animation on mobiles
});

Methods

$('[data-animate]').revealer('bind');

Support on Beerpay

Hey dude! Help me out for a couple of 🍻!

Beerpay Beerpay

About

Simple lightweight jQuery plugin to reveal elements on scrolling

https://bissolli.github.io/jquery-revealer/

License:MIT License


Languages

Language:CSS 77.0%Language:JavaScript 23.0%