@hellomonday/swap-dom
v1.1.0
Published
This module will load in a piece of DOM and swap it with the current DOM given a selector.
Downloads
41
Keywords
Readme
@hellomonday/swap-dom
This module will load in a piece of DOM and swap it with the current DOM given a selector.
Install
$ npm install --save @hellomonday/swap-dom
Usage
await oldSection.animateOut();
await swapDOM('/blog', 'main');
await newSection.animateIn();
License
MIT © Hello Monday