Jump to content
Search Community

GSAP Border Animation

caleb_case
Moderator Tag

Recommended Posts

caleb_case
Posted

Hello, 

 

I'm wanting to recreate this border animation where it draws in a thicker border to the lighter border on the footer of this site: https://ventriloc.ca/fr/

 

Would anyone be able to point me in the right direction in how I can achieve this affect or a similar affect? 

 

An idea I had was instead of keeping the thicker orange border small as you scroll down the page but having it expand to it's full parent container border instead of just going around.

 

Any help/insight would be greatly appreciated.

 

Thanks!

GreenSock
Posted

Are you talking about the border animation where a small chunk of the line/border animates around the edges (on top of the thinner line)? That'd be perfect for DrawSVG (Club GreenSock membership benefit). 

  • Like 1
Posted

Jack beat me to it, but yep - DrawSVG makes that super easy.

See the Pen BaKGyaa by PointC (@PointC) on CodePen.

 

Happy tweening.

:)

 

  • Like 1
caleb_case
Posted

Perfect.

 

Would I use ScrollTrigger to tie the animation to scroll them I'm guessing?

GreenSock
Posted
4 minutes ago, caleb_case said:

Perfect.

 

Would I use ScrollTrigger to tie the animation to scroll them I'm guessing?

Exactamundo. 

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