@hellomonday/swap-dom
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @hellomonday/swap-dom

Weekly Downloads

3

Version

1.1.0

License

MIT

Unpacked Size

3.66 kB

Total Files

5

Last publish

Collaborators

  • supermoos
  • zerguei
  • johnnyslack
  • virgilspruit
  • anderssjessen
  • terkelg