Add animation to your HTML5 pages, items and on text, using this JS Framework

Overview


animate.js is a tiny JavaScript library that provides a convenient way to apply Animate.css powered CSS animations to DOM elements without writing any CSS.
This framework is based on animate.css

Installation

Include the Animate.css CDN inside your head tag.

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css" type="text/css">

Then add our animate.js CDN also, powered by

<script src="https://cdn.jsdelivr.net/gh/rohit-chouhan/animate.js/animate.js"></script>

Animation Styles & Types

Go to animate.css official website to find all the animation css class name, then use it with animate.js

How to apply

Here the syntex code to apply animation using animate.js

//Syntex
animate.apply({
   selector:'<selector>',
   style:'<animate_class>',
   delay:<delay_time_in_sec>,
   speed:'<speed of animation>',
   repeat:<loop time of animation>
});

//Example
animate.apply({
   selector:'#text', 
   style:'animate__rubberBand',
   delay:1, // 1, 2, 3, 4 
   speed:'slow', // 'slow', 'slower', 'fast', 'faster'
   repeat:1 // 1, 2, 3, 4, 'infinite'
});

Complete Example Code

Try Live Test https://jsfiddle.net/e9a1rm7x

<!DOCTYPE html>
<html>
    <head>
        <title>Animate.js</title>
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/animate.min.css" type="text/css" />
	<script src="https://cdn.jsdelivr.net/gh/rohit-chouhan/animate.js/animate.js"></script>
    </head>
    <body>
        <center>
            <h1 id="text">Animate Me</h1>
            <br />
            <button onclick="myfun()">Animate the Text</button>
        </center>
    </body>
    <script>
        function myfun() {
            animate.apply({
                selector: "#text",
                style: "animate__rubberBand",
                delay: 1,
                speed: "fast",
                repeat: 1,
            });
        }
    </script>
</html>

Developed by Rohit Chouhan

You might also like...

A simple and basic app, where you can add your todo list and remove all selected or one of the items from the list

A simple and basic app, where you can add your todo list and remove all selected or one of the items from the list

Jun 14, 2022

A small web app that tries to imitate the desktop web version of amazon site, you can add items to the basket, delete them, and have your user authentication feature thanks to Firebase.

A small web app that tries to imitate the desktop web version of amazon site, you can add items to the basket, delete them, and have your user authentication feature thanks to Firebase.

Features Here's the feature's included in this project πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Login Page πŸ“¦ Products Page πŸ›’ Cart and Checkout Page πŸ“ Sign up function with Goog

Aug 22, 2022

Easiest 1-click way to install and use Stable Diffusion on your own computer. Provides a browser UI for generating images from text prompts and images. Just enter your text prompt, and see the generated image.

Easiest 1-click way to install and use Stable Diffusion on your own computer. Provides a browser UI for generating images from text prompts and images. Just enter your text prompt, and see the generated image.

Stable Diffusion UI Easiest way to install and use Stable Diffusion on your own computer. No dependencies or technical knowledge required. 1-click ins

Dec 30, 2022

This plugin integrates by default with Twitter bootstrap using badges to display the maximum lenght of the field where the user is inserting text. Uses the HTML5 attribute "maxlength" to work.

Bootstrap MaxLength This plugin integrates by default with Twitter bootstrap using badges to display the maximum length of the field where the user is

Dec 25, 2022

The awesomebooks project is a simple list, but separated into 3 parts and given a retro feel. The main page is where we can add books, and on another page we can see the list, and remove items. There is also a "contact-us" page.

Awesome Books This is the restructured version of the famous awesome-books project! Here you can find JavaScript broken into modules, using import-exp

Nov 15, 2022

This is college project in which me and my team create a website that provide the tools for basic text modification and add todos also we add blog init.

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: np

Jun 9, 2022

This is an imitation of the Amazon online shopping store. Users can add and remove items from the cart, proceed to checkout and make payments.

AMAZON This is an imitation of the Amazon online shopping store. Users can add and remove items from the cart, proceed to checkout and make payments.

Mar 23, 2022

Simple scroll based text reveal animation library.

Simple scroll based text reveal animation library.

Simple scroll based text reveal animation library. ⛰️ DEMO Getting Started Using packge manager NPM Install textify using npm: npm install textify.js

Dec 5, 2022

Simple To-do list build using HTML5, CSS3, JavaScript and Webpack. You can add new tasks, remove and edit them.

Simple To-do list build using HTML5, CSS3, JavaScript and Webpack. You can add new tasks, remove and edit them.

Mar 5, 2022
Owner
Rohit Chouhan
Software/JavaScript Engineer Deloitte
Rohit Chouhan
Quick and easy spring animation. Works with other animation libraries (gsap, animejs, framer motion, motion one, @okikio/animate, etc...) or the Web Animation API (WAAPI).

spring-easing NPM | Github | Docs | Licence Quick and easy spring animations. Works with other animation libraries (gsap, animejs, @okikio/animate, mo

Okiki Ojo 34 Dec 14, 2022
A Zotero add-on that scans your Markdown reading notes, tags the associated Zotero items, and lets you open notes for the Zotero items in Obsidian.

Zotero Obsidian Citations Adds colored tags to Zotero items that have associated Markdown notes stored in an external folder. Open an associated Markd

Dae 210 Jan 4, 2023
A single-page application that allow users to add their To Do items. The items could be checked as completed and the completed task can be removed. Built with JavaScript, HTML and CSS

To Do list Application This is a single page application that allows users to keep track of their tasks. Users can add the task and also check the che

Micheal Oguntayo 4 Oct 14, 2022
A secondhand marketplace where you can post items for sale, interact with sellers, save items you are interested in.

Curbside - the secondhand market place that's actually pleasant to use Post items for sale, interact with sellers, save items you are interested in. A

Curbside 14 Sep 9, 2022
I made countdown birthday and fireworks animation using HTML Canvas, CSS, JS. The fireworks animation gonna come out once the countdown is finished or in other words, "Birthday Time".

Countdown-Birthday-Fireworks-Animation I made countdown birthday and fireworks animation using HTML Canvas, CSS, JS. The fireworks animation gonna com

Mahardika Bayu S.B 19 Dec 31, 2022
Animation library build on top of web animation API (WAAPI)

unanime.js Javascript animation library build on top of web animation API (WAAPI). Learn more about WAAPI: Web animation API Documentation Blog Daniel

ClΓ©ment Laval 3 Jun 21, 2022
A JavaScript animation plugin for menus. It creates a div that moves when you mouse over an element, giving it an elastic animation.

Lava-Lamp Description: A JavaScript animation plugin for menus. It creates a div that moves when you mouse over an element, giving it an elastic anima

Richard Hung 38 Jun 4, 2022
To Do List Application Organize your tasks with simple add and delete functionality. Organize your items with ease.

TODO-LIST To Do List Application Organize your tasks with simple add and delete functionality. Organize your items with ease. Additional description a

Steve 12 Jul 22, 2022
A to-do list set up using webpack. It allows the user to add, remove, edit and check items on the list. All the data is saved in local storage.

Project Name: Webpack-Project: To-Do-List Description of the project: A simple to-do-list app created using webpack. Built With Major languages: HTML

Tracey Kadenyi 7 Aug 5, 2022