Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
a.joshi84

Text Hover Effect

Recommended Posts

Hi a.joshi85,

 

Welcome to the forums!

 

All you have to do there is to break each letter of the text you want to animate into an individual tag element, add your desired animation and trigger it with the 'mouseover' event.

 

You can either, use GSAP's SplitText, write your own function to add the spans or divs as necessary in your text or, painstainkly add the span and div tags by hand (as I have done in the example).

 

See the Pen 6fec6d0b125fe69b186e9b139ccbc01c by dipscom (@dipscom) on CodePen

  • Like 5
Link to post
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.

×