Jump to content


Use stroke as SVG clipPath?

Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I want to use a stroked path as a clipPath for an SVG image so that I can animate the stroke on revealing the image underneath....


Everything I try seems to still use the fill area, even though fill is none..


Anyone know if this is possible?



Link to comment
Share on other sites

Hey @martis :)


That shouldn't be a problem. Do you happen to have a demo?



  • Like 1
Link to comment
Share on other sites

I don't but I figured it out...


Rather than using a <clipPath> I had to use a <mask>

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.