Jump to content

What Is This Effect Called And How Can I Do It?


shanet
 Share

Recommended Posts

Are you thinking of the hover effect? You can do that by using the CSS :hover pseudo-class to change the style when someone mouses over the element. Oh, I see what you mean. Don't know what you'd call it, but you can achieve it by changing the CSS properties when the page is scrolled beyond a certain point (e.g. using window.pageYOffset). If you want the smooth animation it's probably easiest to use something like jQuery.

Link to comment
Share on other sites

You don't have to hardcode such listeners & effects.There are a lot of plugins out there, which do their job perfectly - no need to reinvent the wheel. One popular would be jQuery Waypoints.With great browser support and exactly the event listener implementation you are searching for! bye bye :good:

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
 Share

×
×
  • Create New...