Jump to content

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


shanet

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

I guessed it would be done like that however I thought there must be a better way to do it.Now that you have mentioned jQuery, I think I know how I can do that now.Thanks Synook :)

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...