320+ GSAP.js Examples (Page 6)
Examples

Manual Loader with GSAP Timeline
A complex GSAP timeline simulating a cursor controlling a loader. The main feature is the use of .tweenTo(pos) to smoothly transition the loader to a set position within a spinning animation, synchronized with the cursor’s movement.
See the Pen Manual Loader with GSAP Timeline.

Sliding Puzzle with GSAP Draggable and Tailwind CSS
An implementation of a sliding puzzle using GSAP Draggable - featuring a custom snap function for grid alignment and onThrowComplete logic that uses hitTest to determine move validity and trigger the swap animation.
See the Pen Sliding Puzzle with GSAP Draggable and Tailwind CSS.

Tab Bar Animation with MorphSVG
A complex micro-animation for a tab bar where GSAP keyframes and morphSVG create smooth, “elastic” transitions between icon states, while state management is implemented in vanilla JS.
See the Pen Tab Bar Animation with MorphSVG.

Navigation Button Interaction
A complex micro-animation using GSAP, where a single click triggers a chain of tweens for asynchronous icon movement and simultaneous container pulsation via the scale property.
See the Pen Navigation Button Interaction.

Animated SVG Color Wave Effect
Technical relevance: the use of GSAP to control strokeDashoffset on the mask with looping and different easing, - resulting in a stylized “wave” effect gliding over complex, pre-defined SVG Bézier curves.
See the Pen Animated SVG Color Wave Effect.

Draggable Drink Water Slider with GSAP and SVG
An interactive SVG slider using GSAP Draggable, where the drag progress animates not only the filling of a bottle via an SVG mask but also creates a liquid sloshing effect using modifiers.
See the Pen Draggable Drink Water Slider with GSAP and SVG.

Infinite Scrolling Cards with GSAP and ScrollTrigger
A demonstration of an advanced GSAP technique for an infinite carousel, where the animation of each element is cyclically repeated with precise staggering, creating the feeling of continuous 3D space.
See the Pen Infinite Scrolling Cards with GSAP and ScrollTrigger.

Interactive Jello Text with Variable Fonts
Interactive typography with GSAP and SplitText - when one letter is dragged, the effect elastically propagates to its neighbors, dynamically changing their font-weight and scaleY.
See the Pen Interactive Jello Text with Variable Fonts.

Interactive Skateboard Loading Animation
Explore how a GSAP timeline is used to create a complex movement sequence using keyframes and onComplete callbacks to ensure smooth and realistic transitions between poses. All control is implemented via keyboard and touch event handlers.
See the Pen Interactive Skateboard Loading Animation.

Liquid Gooey UI Elements
Explore the powerful tandem of GSAP and CSS Variables, where to/fromTo with keyframes control SVG elements inside Radio/Checkbox/Switch. The animations utilize the feColorMatrix filter (the “Gooey” effect) and SVG transforms to create smoothly “flowing” shapes and stylish toggles.
See the Pen Liquid Gooey UI Elements.

Neumorphic Multi-Buttons with GSAP Tooltip
Interactive buttons with dual animation - GSAP handles the tooltip appearance, while a CSS class change on click triggers the SVG checkmark animation via stroke-dashoffset.
See the Pen Neumorphic Multi-Buttons with GSAP Tooltip.

React Liquid Toggle Button
A demonstration of a cutting-edge React component using GSAP for complex SVG animation, including path morphing and simultaneous background color change. The technical highlight is the control of the complex animation timeline from a container React component via React.createRef.
See the Pen React Liquid Toggle Button.

Super Mario Scrollytelling Timeline with GSAP
Classic ‘scrollytelling’ with GSAP - creating the illusion of movement by animating transform: translateX on position: fixed elements based on the vertical scroll of an extra-long page.
See the Pen Super Mario Scrollytelling Timeline with GSAP.

Coloron Game
This interactive mini-game is a showcase for modern front-end development, utilizing GSAP’s TweenMax for smooth, complex ball and scene animations, and a well-structured ES6 class system to manage the game logic, score, and responsive scaling.
See the Pen Coloron Game.

Control Interaction with GSAP
A sleek, animated segmented control using GSAP for smooth slide and a subtle 3D-like tilt effect on click, providing a polished micro-interaction.
See the Pen Control Interaction with GSAP.

Interactive Product Hotspots with GSAP and PIXI.js
Uses the PIXI.js WebGL renderer to draw dynamic, hardware-accelerated connection lines between content hotspots, enhanced by GSAP for the smooth ‘magnetic’ displacement effect upon mouse hover.
See the Pen Interactive Product Hotspots with GSAP and PIXI.js.

Button-to-Modal Transition Animation with GSAP
Dynamic “button-to-modal” transition animation built with vanilla JavaScript and GSAP, featuring adaptive scaling calculation for correct display on all screen sizes.
See the Pen Button-to-Modal Transition Animation with GSAP.

Interactive Tab System with GSAP
An advanced tab system where all elements (text, images, and navigation) are synchronized into a single, fluid transition, utilizing gsap.timeline() for precise control over fading, sliding, and animation timing.
See the Pen Interactive Tab System with GSAP.

Morphing Shape with Spinning Color Stroke
Complex Path Morphing at the intersection of technologies: the demo uses the GSAP library to interpolate coordinates sampled from SVG paths and renders the result with frame-by-frame precision using the Canvas API.
See the Pen Morphing Shape with Spinning Color Stroke.

3D Coin Spin Animation
An interactive 3D coin spin animation implemented by rendering 260 pre-shot frames onto a Canvas; spin control, inertia, and movement physics are handled by the combination of GSAP and the Draggable Plugin.
See the Pen 3D Coin Spin Animation.

Button with Animated Gradient
Achieve a premium, vibrant glow and pulsating background with this component, which utilizes high-performance CSS animations and dynamic box-shadow effects, all orchestrated by TypeScript and the GSAP library.
See the Pen Button with Animated Gradient.

Animated Pie Chart (V2)
A demo showcasing an adaptive, unique “ring” pie chart design using SVG circles, where each segment is animated and colored from a predefined JavaScript array.
See the Pen Animated Pie Chart (V2).

Color Clipping Effect with CSS Gradients and GSAP
A sleek text hover and intro animation, implemented using GSAP to smoothly transition CSS gradient stops via modern CSS variables, ensuring high performance and clean, maintainable code.
See the Pen Color Clipping Effect with CSS Gradients and GSAP.

GSAP Draggable and ScrollTrigger Timeline
A polished implementation of GSAP’s ScrollTrigger that links main page scroll to a custom animated timeline, utilizing Draggable for precise, responsive horizontal navigation and enhanced by cinematic scroll-based section transitions.
See the Pen GSAP Draggable and ScrollTrigger Timeline.
GSAP Sprite Mask Animation
The demo uses GSAP to programmatically control the CSS mask property and applies the ease: steps() function for precise, frame-by-frame switching between 20 sprite mask states, creating a drawing or layered revelation effect.
See the Pen GSAP Sprite Mask Animation.

Animate Grid Layout with FLIP
Showcasing the power of GreenSock’s FLIP technique to smoothly animate CSS Grid layout changes, including alphabetical sorting and DOM element manipulation.
See the Pen Animate Grid Layout with FLIP.

Claymorphic Toggle Switch with GSAP and SVG
A modern, interactive Claymorphism UI toggle built entirely with scalable SVG vector graphics and animated via GSAP showcases intricate shadow effects and the “liquid” transition of its internal elements.
See the Pen Claymorphic Toggle Switch with GSAP and SVG.

GSAP FLIP Transform Button to 3D Coin
Utilizing the powerful GSAP FLIP technique to flawlessly transform a 2D button into a highly detailed 3D object (a spinning coin) created with the lightweight Zdog library, ensuring a smooth transition between DOM and 3D graphics.
See the Pen GSAP FLIP Transform Button to 3D Coin.

Infinite Scrollable and Draggable WebGL Grid
This demo showcases advanced THREE.js implementation using coordinate wrapping and custom shaders to create a highly performant, infinitely scrollable and draggable WebGL grid with motion-based visual feedback.
See the Pen Infinite Scrollable and Draggable WebGL Grid.

Nest Thermostat UI with Draggable.js and Canvas
An interactive thermostat implemented in Vanilla JS leverages the Draggable library for rotation input and arrow keys for step-by-step adjustments, with Canvas used for the visualization of temperature activity.
See the Pen Nest Thermostat UI with Draggable.js and Canvas.