xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

GSAP

GreenSock Animation Platform

animation library

https://greensock.com/gsap/

https://github.com/greensock/GSAP

https://www.npmjs.com/package/gsap

# npm i gsap
$ npm i -S gsap

$ yarn add gasp

// typical import
import gsap from "gsap";
 
// or get other plugins:
import Draggable from "gsap/Draggable";
import ScrollToPlugin from "gsap/ScrollToPlugin";
 
// or all tools are exported from the "all" file (excluding bonus plugins):
import { gsap, ScrollToPlugin, Draggable, MotionPathPlugin } from "gsap/all";
 
// don't forget to register plugins
gsap.registerPlugin(ScrollToPlugin, Draggable, MotionPathPlugin); 

https://www.awwwards.com/websites/gsap-animation/



原文地址:https://www.cnblogs.com/xgqfrms/p/12810249.html