Jump to content
Search Community

Hi, would someone mind helping me brainstorm this effect?

JoseCordova test
Moderator Tag

Recommended Posts

I'm going to attempt to recreate this effect: https://2019.lesanimals.digital/en in GSAP.

 

I'm assuming my best bet would be a wipe. As you can see in the CodePen embed, at the line's rotate at the end of the timeline. Right now the 'community' text is visible. But I'd be looking to reveal the text when the lines rotate. My idea is to create some type of circular wipe but I'm not quite clear on how I should approach this beyond animating a mask. There are three sets of text (community, ingenuity, and honesty). Ideally the text underneath will be revealed when the transition/wipe occurs.

 

So if I was to transition from 'honesty' -> 'ingenuity' - the honesty text would 'wipe out' and the ingenuity text would 'wipe in' so that the ingenuity text would become visible as the honesty text was becoming invisible.

 

I'm not sure how clear I'm being, but I'd be happy to clarify.

 

Thanks in advance!

See the Pen LYpevoP?editors=1011 by meatjasenmp (@meatjasenmp) on CodePen

Link to comment
Share on other sites

@ZachSaucier

 

I'll be the first to admit that I'm pretty clueless about this part of my animation, with that being said can you expand on that? Do you mean the second clip path would be rotating in the opposite direction?

 

And how would that work, seeing as I have to assign a specific clip path for each element in the example I have?

Link to comment
Share on other sites

There's actually two ways you could go about it (I'm talking theory here):

  1. Use two clip paths. One clip path hides content, the other reveals content that was originally hidden.
    In other words you start with two layers of content. One is fully visible at the start and uses a clip path animation to hide its content. The other starts with its content fully hidden by a clip path and then reveals it using a clip path animation. Make sense?
  2. Still layer two sets of content but apply a background color (the same as your general background color) to the set of content on top. That way when you can still only use one clip path animation to reveal the content underneath but the original content is hidden by the background color. Make sense?
Link to comment
Share on other sites

1 minute ago, JoseCordova said:

Can you point me to the documentation for the 'end' parameter? I can't seem to find it.

That's because there are no docs for it :) GSAP allows you to animate any object's properties. In this case you're animating arcTwo's end property.

  • Like 1
Link to comment
Share on other sites

In order to loop it I think it'd be easier to use GSAP to actually set the clip paths values. That way you can just do repeat: -1 on the timeline. The easiest way to get GSAP to set the clip path values is to use MorphSVG plugin using the 90 degree, 180 degree, 270 degree, and 359.999 degree as the values. Here's how I'd set it up:

See the Pen mdeGErJ?editors=0010 by GreenSock (@GreenSock) on CodePen

 

Notice that I changed your SVG so that the clip paths are no longer nested. I also duplicated the first set of words in order to loop properly since you can't change z-index in SVG very easily.

 

If I were doing this, I might generate the clip paths and duplicate of the first entry with JS so that whenever you want to add a new word you just add the SVG part and don't worry about the rest. But I didn't do that in the demo above :) 

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