shanet Posted November 5, 2011 Share Posted November 5, 2011 Hi, The nav bar here is the effect I am referring to.I wish to make something similar. How can I do that and what is it called? Thanks Link to comment Share on other sites More sharing options...
Synook Posted November 5, 2011 Share Posted November 5, 2011 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 More sharing options...
shanet Posted November 6, 2011 Author Share Posted November 6, 2011 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 More sharing options...
artistandlive Posted November 6, 2011 Share Posted November 6, 2011 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.