Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
207 lines (167 loc) · 3.82 KB

File metadata and controls

207 lines (167 loc) · 3.82 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Animation Guide

(Introduced in version: 2.25.0)

::: tip Preview of animation

Check the animate.css library to see a preview of the animation name result.

:::

::: warning Where animation can be used?

:::

animateIn

When the module appears, you can choose an animation.

Here is the list of names of special animations available:

  • bounce
  • flash
  • pulse
  • rubberBand
  • shakeX
  • shakeY
  • headShake
  • swing
  • tada
  • wobble
  • jello
  • heartBeat
  • backInDown
  • backInLeft
  • backInRight
  • backInUp
  • bounceIn
  • bounceInDown
  • bounceInLeft
  • bounceInRight
  • bounceInUp
  • fadeIn
  • fadeInDown
  • fadeInDownBig
  • fadeInLeft
  • fadeInLeftBig
  • fadeInRight
  • fadeInRightBig
  • fadeInUp
  • fadeInUpBig
  • fadeInTopLeft
  • fadeInTopRight
  • fadeInBottomLeft
  • fadeInBottomRight
  • flip
  • flipInX
  • flipInY
  • lightSpeedInRight
  • lightSpeedInLeft
  • rotateIn
  • rotateInDownLeft
  • rotateInDownRight
  • rotateInUpLeft
  • rotateInUpRight
  • jackInTheBox
  • rollIn
  • zoomIn
  • zoomInDown
  • zoomInLeft
  • zoomInRight
  • zoomInUp
  • slideInDown
  • slideInLeft
  • slideInRight
  • slideInUp

animateOut

When module should hide, you can choose an animation.

Here is the list of names of special animations available:

  • backOutDown
  • backOutLeft
  • backOutRight
  • backOutUp
  • bounceOut
  • bounceOutDown
  • bounceOutLeft
  • bounceOutRight
  • bounceOutUp
  • fadeOut
  • fadeOutDown
  • fadeOutDownBig
  • fadeOutLeft
  • fadeOutLeftBig
  • fadeOutRight
  • fadeOutRightBig
  • fadeOutUp
  • fadeOutUpBig
  • fadeOutTopLeft
  • fadeOutTopRight
  • fadeOutBottomRight
  • fadeOutBottomLeft
  • flipOutX
  • flipOutY
  • lightSpeedOutRight
  • lightSpeedOutLeft
  • rotateOut
  • rotateOutDownLeft
  • rotateOutDownRight
  • rotateOutUpLeft
  • rotateOutUpRight
  • hinge
  • rollOut
  • zoomOut
  • zoomOutDown
  • zoomOutLeft
  • zoomOutRight
  • zoomOutUp
  • slideOutDown
  • slideOutLeft
  • slideOutRight
  • slideOutUp

::: warning WARN

  • You can't choose an animateIn name to place it on an animateOut and vice versa
  • Animation names are case sensitive
  • In case of wrong animation name, this will display the default animation (fade)

:::

Developer Notes

You can create an animation on a single <div> of your module.

We coded addAnimateCSS and removeAnimateCSS in order to do this.

::: tip addAnimateCSS() function

Allows you to add an animation to a single <div> of your module.

:::

Syntax: addAnimateCSS(<div>, <animation name>, <animation time in sec>)

Sample:

  • You have created a <div> named "myDivSample"
  • You want to add a flipInX type animation for a duration of 1 second
addAnimateCSS("myDivSample", "flipInX", 1);

::: tip removeAnimateCSS() function

Allows you to remove an animation to a single <div> of your module

:::

Syntax: removeAnimateCSS(<div>, <animation name>)

Sample:

  • You have created a <div> named "myDivSample"
  • You want to remove a flipInX type animation created with addAnimateCSS() function
removeAnimateCSS("myDivSample", "flipInX");

::: tip Tip

You have to update only one element of your module.

So, why not add an animation!?

:::

...
// select element ("myDivSample")
let test = document.getElementById("myDivSample")
// apply pretty update of this element
test.textContent = "Hello AnimateCSS!"
// add an "flipInX" animation type to "myDivSample" with 1 sec duration
addAnimateCSS("myDivSample", "flipInX", 1)
setTimeout(() => {
  // remove animation after 1sec
  removeAnimateCSS("myDivSample", "flipInX")
}, 1000)
...
Morty Proxy This is a proxified and sanitized view of the page, visit original site.