All Projects → ueno-llc → Async Dom

ueno-llc / Async Dom

Licence: mit
Asynchronously call a method after the DOM has changed

Programming Languages

javascript
184084 projects - #8 most used programming language

async-dom

Asynchronously call a method after the DOM has changed. It is useful when animating with css classes.

Installation

npm install async-dom

Usage

import async, { cancel } from 'async-dom';

const element = document.querySelector('.my-node');

element.classList.add('will-show');
async(() => {
  element.classList.remove('will-show');
  element.classList.add('did-show');
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].