# @akahoshi1421/image-animation

> image animation npm package

Latest version **0.0.4** (published 2023-06-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install @akahoshi1421/image-animation
pnpm add @akahoshi1421/image-animation
yarn add @akahoshi1421/image-animation
bun add @akahoshi1421/image-animation
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-06-14 |
| First published | 2023-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Hiroki Akahoshi |
| Maintainers | akahoshi1421 |

## Links

- npm: https://www.npmjs.com/package/@akahoshi1421/image-animation
- npm.io page: https://npm.io/package/@akahoshi1421/image-animation

## Dependencies (1)

- [typescript](https://npm.io/package/typescript.md) ^5.1.3

## Recent versions

- 0.0.4 (latest) — 2023-06-14
- 0.0.3 — 2023-06-14
- 0.0.2 — 2023-06-12
- 0.0.1 — 2023-06-12

## README

# imageAnime.js

CSS アニメーションでは実装が難しい画像アニメーションをやってくれます。

## 使い方

```
npm i @akahoshi1421/image-animation
```

例

```.js
//source image file or URL
const imgSrc = "img/computer.png"; // http://127.0.0.1:8080/img/computer.png

//target dom
const target: HTMLElement = document.querySelector(".result")!;

const main = async () => {
    //src, dst, fadein or fadeout
  const anime = await ImageAnime.init(imgSrc, target, "in");

  //run fadeAnime
  anime.randomFadeAnime(5);
};

main();
```

![アニメーション例](image-animation.gif)

## License

This is under MIT license.

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