gsap
GSAP is a JavaScript library for building high-performance animations that work in **every** major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects...anything JavaScript can touch! The ScrollTrigger plug
$ cnpm install gsap 
SYNC missed versions from official npm registry.

GSAP (GreenSock Animation Platform)

Professional-grade animation for the modern web

GSAP is a JavaScript library for building high-performance animations that work in every major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects...anything JavaScript can touch! The ScrollTrigger plugin lets you create jaw-dropping scroll-based animations with minimal code. No other library delivers such advanced sequencing, reliability, and tight control while solving real-world problems on millions of sites. GSAP works around countless browser inconsistencies; your animations just work. At its core, GSAP is a high-speed property manipulator, updating values over time with extreme accuracy. It's up to 20x faster than jQuery! See https://greensock.com/why-gsap/ for what makes GSAP so special.

What is GSAP? (video)

What is GSAP?

GSAP is completely flexible; sprinkle it wherever you want. Zero dependencies.

There are many optional plugins and easing functions for achieving advanced effects easily like morphing, scrolling, or animating along a motion path.

Docs & Installation

View the full documentation here, including an installation guide with videos.

CDN

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>

Click the green "Get GSAP Now" button at greensock.com for more options and installation instructions, including CDN URLs for various plugins.

Every major ad network excludes GSAP from file size calculations and most have it on their own CDNs, so contact them for the appropriate URL(s).

NPM

See the guide to using GSAP via NPM here.

npm install gsap

The default (main) file is gsap.js which includes most of the eases as well as the core plugins like CSSPlugin, AttrPlugin, SnapPlugin, ModifiersPlugin, and all of the utility methods like interpolate(), mapRange(), etc.

// typical import
import gsap from "gsap";

// or get other plugins:
import Draggable from "gsap/Draggable";
import ScrollTrigger from "gsap/ScrollTrigger";

// or all tools are exported from the "all" file (excluding bonus plugins):
import { gsap, ScrollTrigger, Draggable, MotionPathPlugin } from "gsap/all";

// don't forget to register plugins
gsap.registerPlugin(ScrollTrigger, Draggable, MotionPathPlugin); 

The NPM files are ES modules, but there's also a /dist/ directory with UMD files for extra compatibility.

Download Club GreenSock members-only plugins from your GreenSock.com account and then include them in your own JS payload. There's even a tarball file you can install with NPM/Yarn. Post questions in our forums and we'd be happy to help.

Getting Started (includes video)

Getting Started with GSAP

ScrollTrigger

If you're looking to do scroll-driven animations, GSAP's ScrollTrigger plugin is a great option.

ScrollTrigger

Resources

Get CustomEase for free

Sign up for a free GreenSock account to gain access to CustomEase which lets you create literally any ease imaginable (unlimited control points). It's in the download zip at GreenSock.com (when you're logged in).

What is Club GreenSock? (video)

What is Club GreenSock?

Sign up anytime.

Advanced playback controls & debugging

GSDevTools adds a visual UI for controlling your GSAP animations which can significantly boost your workflow and productivity. (Club GreenSock membership required, not included in this repository).

Try all bonus plugins for free on Codepen

https://codepen.io/GreenSock/full/OPqpRJ

Need help?

GreenSock forums are an excellent resource for learning and getting your questions answered. Report any bugs there too please (it's also okay to file an issue on Github if you prefer).

License

GreenSock's standard "no charge" license can be viewed at http://greensock.com/standard-license. Club GreenSock members are granted additional rights. See http://greensock.com/licensing/ for details. Why doesn't GreenSock use an MIT (or similar) open source license, and why is that a good thing? This article explains it all: http://greensock.com/why-license/

Copyright (c) 2008-2020, GreenSock. All rights reserved.

Current Tags

  • 3.5.1                                ...           latest (a month ago)
  • 3.0.0-beta.11                                ...           next (a year ago)

58 Versions

  • 3.5.1                                ...           a month ago
  • 3.5.0                                ...           2 months ago
  • 3.4.2                                ...           2 months ago
  • 3.4.1                                ...           2 months ago
  • 3.4.0                                ...           3 months ago
  • 3.3.4                                ...           3 months ago
  • 3.3.3                                ...           4 months ago
  • 3.3.2                                ...           4 months ago
  • 3.3.1                                ...           4 months ago
  • 3.3.0                                ...           4 months ago
  • 3.2.6                                ...           6 months ago
  • 3.2.5                                ...           6 months ago
  • 3.2.4                                ...           7 months ago
  • 3.2.3                                ...           7 months ago
  • 3.2.2                                ...           7 months ago
  • 3.2.1                                ...           7 months ago
  • 3.2.0                                ...           7 months ago
  • 3.1.1                                ...           8 months ago
  • 3.1.0                                ...           8 months ago
  • 3.0.5                                ...           9 months ago
  • 3.0.4                                ...           10 months ago
  • 3.0.3                                ...           10 months ago
  • 3.0.2                                ...           10 months ago
  • 3.0.1                                ...           a year ago
  • 3.0.0                                ...           a year ago
  • 3.0.0-beta.11                                ...           a year ago
  • 3.0.0-beta.10                                ...           a year ago
  • 3.0.0-beta.8                                ...           a year ago
  • 3.0.0-beta.7                                ...           a year ago
  • 2.1.3                                ...           a year ago
  • 2.1.2                                ...           2 years ago
  • 2.1.1                                ...           2 years ago
  • 2.1.0                                ...           2 years ago
  • 2.0.2                                ...           2 years ago
  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.20.6                                ...           2 years ago
  • 1.20.5                                ...           2 years ago
  • 1.20.4                                ...           3 years ago
  • 1.20.3                                ...           3 years ago
  • 1.20.2                                ...           3 years ago
  • 1.20.1                                ...           3 years ago
  • 1.20.0                                ...           3 years ago
  • 1.19.1                                ...           4 years ago
  • 1.19.0                                ...           4 years ago
  • 1.18.5                                ...           4 years ago
  • 1.18.4                                ...           4 years ago
  • 1.18.3                                ...           4 years ago
  • 1.18.2                                ...           5 years ago
  • 1.18.0                                ...           5 years ago
  • 1.17.0                                ...           5 years ago
  • 1.16.1                                ...           6 years ago
  • 1.16.0                                ...           6 years ago
  • 1.15.1                                ...           6 years ago
  • 1.15.0                                ...           6 years ago
  • 1.14.2                                ...           6 years ago
  • 1.14.1                                ...           6 years ago
  • 1.13.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 3
This Week 852
This Month 3
Last Day 167
Last Week 2,356
Last Month 9,516
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (646)

Copyright 2014 - 2017 © taobao.org |