Jump to content
GreenSock

Lynx

Wrap around pole effect ?

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

Can GreenSock make animated ribbon effects, for example; ribbon wrapping around a pole ?

Link to comment
Share on other sites

GSAP can animate pretty much any property of any object, but it's not something that you can just say "make a ribbon wrap around a pole", no. For that, you'd probably need to do some fancy work with SVG or canvas, and use GSAP to animate the Beziers or something. 

Link to comment
Share on other sites

  • 1 month later...

If I wanted to create an effect where as lines or swirls were drawn on the screen, since I'm not familiar with canvas, SVG could do this, hrm trying to wrap my head around this ? :)

Link to comment
Share on other sites

I didn't quite understand your question. How exactly would you like us to help you? Was there a specific question about the GSAP API? 

Link to comment
Share on other sites

@Lynx I've created a ribbon like animation on this SVG Christmas card by animating clipPath on a few parts of the SVG.

 

So to answer your question, yes you can create a ribbon like animation, you just have to be a little bit creative with your CSS and HTML.

 

Hope that helps.

  • Like 2
Link to comment
Share on other sites

@Lynx I've created a ribbon like animation on this SVG Christmas card by animating clipPath on a few parts of the SVG.

 

So to answer your question, yes you can create a ribbon like animation, you just have to be a little bit creative with your CSS and HTML.

 

Hope that helps.

 

Ihatetomatoes - what about multiple lines or lines that swirl ?

Link to comment
Share on other sites

You can apply the clipPath to an SVG group.

 

Check out these two articles to see how clipPath works:

 

http://sarasoueidan.com/blog/css-svg-clipping/

http://tutorials.jenkov.com/svg/clip-path.html

Clipping masks are useless with all current browsers, clipping paths may work, depends if there are browser compatibility problems, I have to test again. 

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.
×