Jump to content
Search Community

GSAP DrawSVG on scrollTrigger with stroke-dasharray

DW92 test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts


I have a simple SVG with stroke-dasharray, and I want to animate it using ScrollTrigger.

The problem is - I want to reveal my SVG pattern with stroke-dasharray not modified, but when I do animate it, my stroke-dasharray disapears, making my svg a straight line.

Is there a way to animate it the way I want to do it? Without losing dashed pattern?

See the Pen oNPXQVY by DW922 (@DW922) on CodePen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...