0.0.4 • Published 11 months ago

@akahoshi1421/image-animation v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

imageAnime.js

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

使い方

npm i @akahoshi1421/image-animation

//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();

アニメーション例

License

This is under MIT license.

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago