0.0.5 • Published 5 years ago

@wellwind/thanos-snap v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

thanos-snap

Use Thanos snap to destory your DOM elements.

Installation

npm install html2canvas ramda @wellwind/thanos-snap

or

yarn add html2canvas ramda @wellwind/thanos-snap

Then import the scripts.

import { thanosSnap, thanosRewind } from '@wellwind/thanos-snap';

Usage

// destroy the element, and rewind it after 3s.
const element = document.querySelector('someElm');
thanosSnap(element).then(() => {
  setTimeout(() => {
    thanosRewind(element);
  }, 3000);
});

Are you using Angular

There is also an Angular library called @wellwind/ngx-thanos. You can simple add a directive to your element, and enjoy the Thanos snap effect.

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago