Giter Club home page Giter Club logo

jquery-animate-js's Introduction

jquery.animate.js GitHub release

Have you wondered how to do CSS3 animations with jquery? Well, Now you can do those fun and cool animations with jquery with ease. Save time,save space.This project is still on development phase, any critisism will be welcomed.

demo

Check This out https://safjammed.github.io/jquery-animate-js/ Get the codes too! :)

Requirement

  1. jQuery 1.8 and up
  2. Browser with HTML5 support

Basic Usage

  1. Include the stylesheet on your document's <head>
<head>
  <link rel="stylesheet" href="jquery.animate.min.css">
  <script src="jquery.js"></script>
  <script src="jquery.animate.js"></script>
</head>

with jQuery:

  1. Write code like the following:
  • Easy way: simply write the following code to start:

      $('#myobj').doAnim('bounce');

    or

    $('#myobj').animateCss('bounce');

    put any of the suppoerted animations into the doAnim() or animateCss and you'll start right away.

  • Advanced : The API is like the following:

    $(obejct).doAnim(options);

    This plugin has following options/ Configuration:

    1. 'animation' (Animation name)
    2. 'times' (how many times the animation would run)
    3. 'duration'(the duration of each animation)
    4. 'delay' (delay of animation)

EXAMPLE:

 $('#myobj').doAnim({
       'animation' : 'pulse',
       'times' : 2,
       'duration' : 0.5,
       'delay' :1
       });

The upper code will wait 1 sec. animate #myobj with pulse effect 2 times and a duration 0.5 secs each time.

  • Callback Function : Call back function added on version 0.2. You can tell what happens after the animation ends. Write codes like this:
    $('#myobj').doAnim('bounce', function(){
     //This is the callback function
       alert('The animation has finished');
     });
    With options:
    $('#myobj').doAnim({
       'animation' : 'pulse',
       'times' : 2,
       'duration' : 0.5,
       'delay' :1
       }, function(){
         //This is the callback function
         alert('The animation has finished');
    });

With HTML-CSS

  1. Add the class 'animated' to the element you want to animate along with an animation name from the supported animations. You may also want to include the class infinite for an infinite loop.

Example: The following code will make #myobj bounce once

<div id="myobj" class="animated bounce"> Some text here </div>

supported animations

  • bounce
  • flash
  • pulse
  • rubberBand
  • shake
  • headShake
  • swing
  • tada
  • wobble
  • jello
  • bounceIn
  • bounceInDown
  • bounceInLeft
  • bounceInRight
  • bounceInUp
  • bounceOut
  • bounceOutDown
  • bounceOutLeft
  • bounceOutRight
  • bounceOutUp
  • fadeIn
  • fadeInDown
  • fadeInDownBig
  • fadeInLeft
  • fadeInLeftBig
  • fadeInRight
  • fadeInRightBig
  • fadeInUp
  • fadeInUpBig
  • fadeOut
  • fadeOutDown
  • fadeOutDownBig
  • fadeOutLeft
  • fadeOutLeftBig
  • fadeOutRight
  • fadeOutRightBig
  • fadeOutUp
  • fadeOutUpBig
  • flipInX
  • flipInY
  • flipOutX
  • flipOutY
  • lightSpeedIn
  • lightSpeedOut
  • rotateIn
  • rotateInDownLeft
  • rotateInDownRight
  • rotateInUpLeft
  • rotateInUpRight
  • rotateOut
  • rotateOutDownLeft
  • rotateOutDownRight
  • rotateOutUpLeft
  • rotateOutUpRight
  • hinge
  • rollIn
  • rollOut
  • zoomIn
  • zoomInDown
  • zoomInLeft
  • zoomInRight
  • zoomInUp
  • zoomOut
  • zoomOutDown
  • zoomOutLeft
  • zoomOutRight
  • zoomOutUp
  • slideInDown
  • slideInLeft
  • slideInRight
  • slideInUp
  • slideOutDown
  • slideOutLeft
  • slideOutRight
  • slideOutUp

ChangeLog:

Version - 0.2

  • Added Callback Feafuture

Version - 0.01

  • Initial Release

License

Animate.css is licensed under the MIT license. (http://opensource.org/licenses/MIT)

conclusion

Lastly, i want to thank daneden for his animate.css for inspiration. have fun!

jquery-animate-js's People

Contributors

safjammed avatar

Watchers

James Cloos 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.