如何将GSAP库导入到Ionic项目中。仅使用npm安装gsap当我导入到
import { TweenMax, TimelineMax} from "gsap";我用打字本。谢谢
发布于 2018-01-10 09:52:30
你不需要打字。我在几个项目中使用过它(所有这些项目都是打字稿):
assets/javascripts中使用的GSAP库放在src/index.html文件中,如下所示:
<script src="assets/javascripts/TweenMax.min.js"></script>发布于 2017-08-22 16:50:22
典型进口
import {TweenMax, Power2, TimelineLite} from "gsap";获取不包含在TweenMax中的部件
import Draggable from "gsap/Draggable";
import ScrollToPlugin from "gsap/ScrollToPlugin";想了解更多信息-
https://stackoverflow.com/questions/45682344
复制相似问题