New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

aeonjs

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aeonjs

js animation engine

latest
Source
npmnpm
Version
4.0.6
Version published
Maintainers
1
Created
Source

aeon.js

js animation engine | aeonjs.dev

aeon.js is a lightweight, performance-oriented JavaScript animation library following the Anime.js API. It works with CSS properties, SVG, DOM attributes and JavaScript Objects.

Getting started | Documentation | Demos and examples | Browser support | What's Change

Getting started

Download

Via npm

$ npm install aeonjs --save

Usage

import { aeon } from 'aeonjs';

Hello world

aeon({
  targets: 'div',
  translateX: 250,
  rotate: '1turn',
  backgroundColor: '#FFF',
  duration: 800
});

Documentation

Demos and examples

Browser support

ChromeSafariEdgeFirefoxOpera
107+16+107+106+92+

Changes

This library was created to address specific issues with anime.js:

  • rewritten in typescript
  • incompatibilty with Server Side Rendering
  • seek to 0 or to initial state did not set initial state or fire updates, causing desync issues
  • the requestAnimationFrame loop wasn't exposable to sync with other calls
  • object mutations were deoptimizing several key processes in Safari, causing slowdowns and hiccups
  • reduce loops were causing general deoptimizing in all browsers, seemingly randomly. these reduces were to perform array flattening (now replaced with .flat()) and sorting and have been replaced or removed
  • functional loops (e.g. forEach), though nice, were creating deep functions-in-loops. these have been addressed where possible to avoid function creation and reduce spikes in memory/garbage collection
  • initialization of many animations was very slow. the central anime call and other encapsulations have been turned into pure functions and/or classes
  • substituted Map & Set where possible to reduce loop work-arounds/indexOf/includes checks
  • heavier parts of the library can now be tree shaked when not imported/used

Website | Documentation | MIT License | © 2022 Immutable.

Keywords

aeon

FAQs

Package last updated on 19 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts