# @wellwind/thanos-snap

> Use [Thanos](https://www.google.com/search?q=Thanos) snap to destory your DOM elements.

Latest version **0.0.5** (published 2019-04-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @wellwind/thanos-snap
pnpm add @wellwind/thanos-snap
yarn add @wellwind/thanos-snap
bun add @wellwind/thanos-snap
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2019-04-30 |
| First published | 2019-04-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 90.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mike Huang |
| Maintainers | wellwind |
| Keywords | thanos, javascript |

## Links

- npm: https://www.npmjs.com/package/@wellwind/thanos-snap
- Homepage: https://github.com/wellwind/ngx-thanos/tree/master/libs/thanos-snap
- Issues: https://github.com/wellwind/ngx-thanos/issues
- npm.io page: https://npm.io/package/@wellwind/thanos-snap

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^1.9.0

## Recent versions

- 0.0.5 (latest) — 2019-04-30
- 0.0.4 — 2019-04-30
- 0.0.3 — 2019-04-29
- 0.0.2 — 2019-04-29
- 0.0.1 — 2019-04-29

## README

# thanos-snap

Use [Thanos](https://www.google.com/search?q=Thanos) snap to destory your DOM elements.

# Installation

```shell
npm install html2canvas ramda @wellwind/thanos-snap

or

yarn add html2canvas ramda @wellwind/thanos-snap
```

Then import the scripts.

```typescript
import { thanosSnap, thanosRewind } from '@wellwind/thanos-snap';
```

# Usage

```typescript
// 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](https://github.com/wellwind/ngx-thanos/tree/master/libs/ngx-thanos). You can simple add a directive to your element, and enjoy the Thanos snap effect.

---
_Source: https://npm.io/package/@wellwind/thanos-snap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
