Giter VIP home page Giter VIP logo

animate-scroll's Introduction

animate-scroll

Plugin Name: jQuery Animation Scroll Plugin
Plugin Description: animate-scroll is a mobile friendly viewport triggered animation plugin for jQuery using greensock.
Copyright (C) 2014 Jason Paul Lusk ([email protected])
Author: Jason Lusk
Author URI: http://JasonLusk.com
GIT URI: https://github.com/mpalpha/animate-scroll.git
Tip: https://cash.me/$JasonLusk

DEMO http://www.jasonlusk.com/scroll

Requirements:

jQuery.js v1.10.1+ from www.jquery.com.
TweenMax.js 1.10.2+, TimelineMax.js v1.10.2+, EasePack.js v1.9.3+ from www.greensock.com.

Install:
    bower i mpalpha/animate-scroll
Initialize:
    $(document).animateScroll();  
Configure:
Available Options Default value Description
transformPerspective 1000 Parent transform perspective
lazyLoad false Lazy load images (experimental)
animateAll false Animate elements outside of viewport?
reverse true Allow elements reverse animation state?
transformOrigin '50% 50%' Transform origin X/Y position
x 0 Horizontal offset in px
y 0 Vertical offset in px
scaleX 1 Scale X position
scaleY 1 Scale Y position
rotation 0 Rotation in degrees
rotationX 0 Rotation X position
rotationY 0 Rotation X position
alpha 0.9 Opacity from 0.0-1
delay 0 Animation delay
z 0.1 Z position
force3D true Force 3D hardware
easingType 'Back.easeInOut' Animation easing type
duration 0.3 Animation diration in seconds
Implement:
    <p data-animate-scroll='{  
      "scaleX": "1.5",  
      "scaleY": "1.5",  
      "x": "-10",  
      "y": "-10",  
      "rotation": "-3",  
      "alpha": "1",  
      "easingType": "Cubic.easeOut",  
      "duration": "1"  
      }'>test</p>  
Events (Optional):
Type Example
play $('.my-animated-element').trigger('play');
reverse $('.my-animated-element').trigger('reverse');
check $('.my-animated-element').trigger('check');

animate-scroll's People

Contributors

mpalpha avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.