どうもですよ、はやちでございますよ。(:D 最大11.5kbしかないトゥイーンアニメーション、ドラッグアニメーションに優れたPopmotion.jsについてご紹介します。(☞ ՞ਊ ՞)☞ 導入方法 npmからインストールはこちらから。 npm install popmotion –save importはこちら! import { action } from 'popmotion'; // or stand-alone: import action from 'popmotion/action'; これで導入は完了になります。 実装の紹介 実装できるアニメーションをご紹介します。(☞ ՞ਊ ՞)☞ トゥイーンアニメーション const { easing, tween, styler } = window.popmotion; const divStyler = styler(docume
![とても軽量! ドラッグアニメーションに優れたPopmotion.js実装例! | 株式会社LIG(リグ)|DX支援・システム開発・Web制作](https://cdn-ak-scissors.b.st-hatena.com/image/square/eec14e2b419c5d53c338afb7d39f2017e9e2f370/height=288;version=1;width=512/https%3A%2F%2Fliginc.co.jp%2Fwp-content%2Fuploads%2F2018%2F04%2Feyecatch_180329_01_jona_ogp.png)