Coder Social home page Coder Social logo

janimate's Introduction

jAnimate Code Climate

Plugin to help you use Animate.css with jQuery.

Interactive Demo/Examples: http://renatorib.github.io/janimate/

Animate.css

Do not know Animate.css? If you're new to the wonderful world of Animate.css, I highly recommend you visit this link, to see what you can do with Animate.css.

Download & Usage

NOTE: You need have jQuery and Animate.css in your project to use janimate.

You can use janimate with bower, npm or download by rawgit file

via bower

bower install jquery-janimate

<script src="bower_components/jquery-janimate/dist/janimate.min.js"></script>

via npm

npm install janimate

<script src="node_modules/janimate/dist/janimate.min.js"></script>

via rawgit cdn

https://cdn.rawgit.com/renatorib/janimate/master/dist/janimate.min.js

<script src="https://cdn.rawgit.com/renatorib/janimate/master/dist/janimate.min.js"></script>

Difference between jAnimate and jAnimateOnce

jAnimateOnce() clean the animation classes when the animation ends, which means that any effect that you do, it will return to normal. Suitable for the purposes of Attention Seekers. Not suitable for when you want the final animation stand, as effects of Exits and Entrances. In these cases, you should use the jAnimate().

Basic example

<!DOCTYPE html>
<head>
  <meta charset="utf-8">
  <title>janimate example</title>
  <link rel="stylesheet" href="https://cdn.rawgit.com/daneden/animate.css/master/animate.css">
</head>
<body>

  <h1>Hello jAnimate</h1>
  <button class="e1">swing</button>
  <button class="e2">shake</button>
  <button class="e3">fadeOut</button>
  <button class="e4">fadeIn</button>

  <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script>
  <script src="https://cdn.rawgit.com/renatorib/janimate/master/dist/janimate.min.js"></script>
  <script type="text/javascript">
      $(document).ready(function(){

        $('.e1').click(function(){
          $('h1').jAnimateOnce('swing');
        });

        $('.e2').click(function(){
          $('h1').jAnimateOnce('shake');
        });

        $('.e3').click(function(){
          $('h1').jAnimate('fadeOut');
        });

        $('.e4').click(function(){
          $('h1').jAnimate('fadeIn', function(self, effect){
            alert(effect + ' finish');
          });
        });

      });
  </script>
  
</body>

Effects

  • bounce
  • flash
  • pulse
  • rubberBand
  • shake
  • swing
  • tada
  • wobble
  • 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

Mentions

janimate's People

Contributors

renatorib avatar

Stargazers

Ebrahim Aghbolaghi avatar  avatar Mominul Islam avatar Yusuke AIKO avatar Abhishek B. avatar Yoshihiro Saito avatar  avatar yassine mahjoubi avatar imade raya avatar Ebrahim Aliadeh avatar Dhiren SHAH avatar jibin.hou avatar Zayne avatar zoe avatar Alejandro Loayza avatar Peter Carrero avatar liufajian avatar Luke Horwell avatar 刘信强 avatar Matt Horning avatar O0oo0O avatar Jovey Zheng avatar DevRabbits avatar Marty Helmick avatar  avatar Xiou Yang avatar Deives Fahl avatar  avatar  avatar Jon Martin avatar  avatar Ivan Tokar avatar Elliot Boney avatar Adrian Hartanto avatar Ahmed Saad avatar Bishawjit Das avatar Charlike Mike Reagent avatar gclove avatar Matheus Marsiglio avatar Nick LaDart avatar Raymond avatar Israni, Murli avatar Misael Eduardo Rojas Lopez avatar  avatar Aleksandr Merekin avatar Matt Zimmermann avatar Hossein Mayboudi avatar Guillermo Palafox avatar Luciano Pellacani Franca avatar biz man avatar Fred Cohen avatar Carabineiro avatar Toby Callinan avatar James Moberg avatar Luigi Runfola avatar Carlos E. Oliveira avatar Gian Souza avatar Felquis G avatar Isaque Dias avatar Stefan Hüsges avatar Felipe Rank avatar Gabriel Pedro avatar  avatar Jorge Roberto Tomaz Junior avatar Jonathan Barratt avatar Diogo Moretti avatar Diel Duarte avatar Cícero Viana avatar

Watchers

biz man avatar James Cloos avatar imade raya avatar  avatar  avatar Carabineiro avatar DevRabbits avatar Luciano Pellacani Franca avatar Ahmed Saad avatar  avatar

janimate's Issues

Examples provided not working

Is it only on my end that the examples provided on the website are not working?

I press the execute button and nothing happens.

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.