Menu

Post image 1
Post image 2
1 / 2
1

Creating Scroll-Driven SVG Map Animations with GSAP | Codrops

Codrops·Tom Miller·3 days ago
#liNNUh1C
#tympanus#s2#gsap#path#timeline#scroll
Reading 0:00
15s threshold

This tutorial will show you how to build an animated map using SVG and GSAP.js. The goal is to create an eye-catching interaction that is uncomplicated, lightweight, and doesn’t require the use of a third-party map API. The Setup We’ll use an SVG element to create our responsive stage. It contains: a map image, a path, circles marking the start and end of the route, and two groups for “camera” movement GSAP draws the path, moves our point-of-view, and ties our timeline progress to scroll position. For this, you’ll need to include the following scripts: gsap.min.js ScrollTrigger.min.js DrawSVGPlugin.min.js MotionPathPlugin.min.js Here’s a minimal demo with all of this working together.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More