@wellwind/thanos-snap
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.5 • Public • Published

    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.

    Install

    npm i @wellwind/thanos-snap

    DownloadsWeekly Downloads

    14

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    92.4 kB

    Total Files

    23

    Last publish

    Collaborators

    • wellwind