Jump to content
Search Community

Animating mildly complex logo with staggerFromTo

dblaise test
Moderator Tag

Recommended Posts

Hi there, I have a relatively complex path in my SVG and I'm trying to use DrawSVG to have it look like the text is being scripted. It's usually filled in black. When I try using a basic staggerFromTo it renders a number of dots first then renders the whole asset. I'm not sure what I'm doing wrong here. I've managed to get the plug-in to work on less complex SVGs.

 

Thanks in advance!

See the Pen jOqWqgO by davedbase (@davedbase) on CodePen

Link to comment
Share on other sites

A few problems here ... but I don't think the dots are an issue with DrawSVG or GSAP. I think it's just an issue with  some of the SVG rendering out before the Javascript takes over. It's an SVG with a lot of data points.

 

The second issue is you're trying to use DrawSVG on the SVG element itself, but DrawSVG work on paths, line, polyline, polygon, rect, and ellipse.

 

See the Pen qBZbNEp by sgorneau (@sgorneau) on CodePen

 

Shaun

 

EDIT: Whoops ... didn't see you in there Craig!

  • Like 3
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...