Chain Anime.js calls on jQuery selectors.

Overview

jQuery.animejs

This is a small (< 1kb) helper plugin for the great Anime.js.

Features

  • Chain Anime.js calls in a more readable way.
  • Supports latest Anime.js versions with all options.
  • Very small Footprint (~600 bytes).

Usage

In the browser:

<script src="/path/to/jquery.anime.min.js"></script>
<script>
    // start chaining
    $(selector).animejs({
        left : '50%',
        translateX: '-50%',
        background : '#00ff00',
        duration: 1000,
    }).animejs({
        top : '50%',
        color : '#fff',
        background : '#ff0000',
        duration: 1000,
    }).animejs({
        rotate : 360,
        duration: 1000,
    })
</script>

Or as a NPM dependency:

# Add the dependency to your project
npm install --save jquery.animejs

# or
yarn add jquery.animejs

And then import it in your project:

import 'jquery.animejs'

// start chaining
$('.element').animejs({
    left : '50%',
    translateX: '-50%',
    background : '#00ff00',
    duration: 1000,
}).animejs({
    top : '50%',
    color : '#fff',
    background : '#ff0000',
    duration: 1000,
}).animejs({
    rotate : 360,
    duration: 1000,
})

Requirements

You need jQuery and Anime.js installed.

You might also like...

Different Types of Monsters Card of Popular anime. Build in React tech.

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

Mar 19, 2022

Anime, Manga, and Light Novel Tracker Application for Windows

Anime, Manga, and Light Novel Tracker Application for Windows

Courier Courier is an Anime, Manga, and Light Novel Tracker Application for Windows. With the help of AniList, this desktop app helps you manage and t

Oct 5, 2022

An open-source server software for a certain anime game.

Open-Shen An open-source server software for a certain anime gaem. Based off the leaked Pancake and closed-source Bridge servers. You can find the Ope

Dec 10, 2022

Animene - A platform for anime lovers

Animene A platform for anime lovers Live demo website: animene.vercel.app Technologies used React Material UI SCSS Modules, clsx Axios, GraphQL Redux,

Oct 15, 2022

🌸 API for storing anime picture collection in Discord server

🌸 API for storing anime picture collection in Discord server

Waifuseum Waifuseum (Museum Waifu) is a simple REST API for storing and managing anime picture collection. This project use combinaton of ExpressJS, D

Jul 24, 2022

🦄 • A simple open source project that can display random anime images and quotes.

Welcome to Rakoko App! 👋 Rakoko App is a simple application that is used to display images and quotes randomly. Built using Framework7. 💖 Demo Page

Jun 12, 2022

🌸 API for storing anime picture collection in Discord server

🌸 API for storing anime picture collection in Discord server

Waifuseum Waifuseum (Museum Waifu) is a simple REST API for storing and managing anime picture collection. This project use combinaton of ExpressJS, D

Jun 28, 2022

A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.

Obsidian Media DB Plugin A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your va

Dec 21, 2022

CLI tool for printing anime quotes in your terminal.

aniquote Why? While i was browsing Unixporn looking to steal someone's dotfiles (im too lazy to rice myself) i saw some anime-related rices and though

Dec 22, 2022
Releases(1.0.1)
Owner
null
A plugin for Master Styles to group up styles and add selectors.

master-styles-group A plugin for Master Styles to group up styles and add selectors. THIS PROJECT IS IN BETA This project may contain bugs and have no

SerKo 5 Sep 27, 2022
CSS selectors complexity and performance analyzer

analyze-css CSS selectors complexity and performance analyzer. analyze-css is built as a set of rules bound to events fired by CSS parser. Each rule c

Maciej Brencz 680 Dec 16, 2022
Simple patch that adds a 'progress' callback to jquery Ajax calls

Jquery Ajax Progresss A simple patch to jQuery that will call a 'progress' callback, using the XHR.onProgress event Usage Simply include the script on

Chad Engler 118 Sep 8, 2022
Aergo Timer Service schedule smart contract function calls

Aergo Timer Service ⏰ Create timers to call functions on your smart contracts Schedule calls based on time interval or on specific date-times For a sm

aergo 3 Mar 10, 2022
Basic Implementation of a Contract Wallet in Solidity. The owner can transfer Ether/ERC20 and execute transactions via low-level calls.

Contract Wallet Basic Implementation of a Contract Wallet in Solidity. The owner can transfer Ether/ERC20 and execute transactions via low-level calls

Junho Yeo 3 Jun 18, 2022
It's a simple Leaderboard with the functionality to add and view leaderboard with API calls

It's a simple Leaderboard with the functionality to add and view leaderboard with API calls. This project follows GitFlow instead of GitHub flow and it's built with JavaScript, CSS and HTML.

Robertson Arthur 4 Jul 6, 2022
A slick loader to use during your AJAX calls or data processing

Slick Loader A slick loader to use during your AJAX calls or data processing Doc Installation Simply import slick-loader into your HTML. <link rel="st

Zenoo 1 Jan 21, 2022
Functional-style Cloudflare Durable Objects with direct API calls from Cloudflare Workers and TypeScript support.

durable-apis Simplifies usage of Cloudflare Durable Objects, allowing a functional programming style or class style, lightweight object definitions, a

Dabble 12 Jan 2, 2023
An esbuild plugin for simplifying global API calls.

esbuild-plugin-global-api This plugin is still experimental, not recommended for production. It may break your code in some cases. An esbuild plugin f

null 4 Nov 15, 2022
Utility for Anime Empire's Treasury Team

TreasuryTools Utility for Anime Empire's Treasury Team to make Merching, Radding, and Running easier and more efficient. Table of Contents Command Usa

Zlushiie 1 Dec 31, 2021