Code Monkey home page Code Monkey logo

jquery-css-mahoro's Introduction

jquery-css-mahoro Build Status npm

jQuery plugin for managing CSS animations in a simple way.

What is does

CSS Mahoro adds/removes CSS animation classes for you at the right time

  1. Adds CSS animation class
  2. CSS animation running
  3. Removes CSS animation class

Usage

Example below are the usage with Animate.css. You can use any CSS animation as long as it triggers CSS animation on the element.

Basic

$(...).cssMahoro('animated bounce');

Chaining animations with promise

// Chaining animations with promise
$(...).cssMahoro('animated bounce')
.then(function (elm) {
  return $(elm).cssMahoro('animated flash');
})
.then(function () {
  return $.when(
    $(...).cssMahoro('animated fadeIn'),
    $(...).cssMahoro('animated fadeOut')
  );
});

Hide

// For CSS animation that hides element
$(visibleElement).cssMahoro('animated fadeOut', { hide: true });

Show

// For CSS animation that shows element
// default display is `block`
$(hiddenElement).cssMahoro('animated fadeIn', { show: true });

// Custom `display` property
$(hiddenElement).cssMahoro('animated fadeIn', { show: 'inline-block' })

Install

NPM

npm install jquery-css-mahoro

CDN

CSS Mahoro uses npmcdn.

<script src="https://npmcdn.com/jquery-css-mahoro/dist/jquery.css-mahoro.min.js"></script>

License

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

jquery-css-mahoro's People

Contributors

pc035860 avatar

Watchers

 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.