A perfect recreation of Runway.com's path animation system using Anime.js instead of GSAP.
I came across Runway.com's website and was captivated by their beautiful scroll-triggered SVG path animations. The way the paths drew in as you scrolled through the page created a compelling visual narrative. I noticed they were using GSAP for these animations, but as an Anime.js enthusiast, I wondered: could I recreate this effect using Anime.js?
Original Runway.com Animation
A perfect recreation of Runway's path animation system using Anime.js instead of GSAP:
My Anime.js Implementation
You can easily modify these parameters at the top of the script:
// Define initial progress for each path (0 to 1) const initialProgress = { path0: 0.2, // Starting progress for path 0 (right branch) path1: 0.3, // Starting progress for path 1 (left branch) path2: 0.25, // Starting progress for path 2 (bottom branch) };
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.2/anime.min.js"></script>
index.html
)style.css
)script.js
)