Jump to content

Menu easing


Snafen45

Recommended Posts

Hi guys,I’m a novice at jquery and was wondering if someone could please help implement ‘easing’ on a CSS Sprite menu. I would like to have the menu ‘states’ fade in and out for the following menu, but without altering the actual structure of the menu code.CSS Sprite Menuhttp://buildinternet.com/2010/01/how-to-ma...e-powered-menu/Any help would be greatly appreciated.Thank you.

Link to comment
Share on other sites

  • 2 weeks later...

If you are using JQuery, you can use the animate() method and alter the opacity, width, height, position etc. Animate also takes a duration argument and an easing argument, that tells the method how to apply the properties you defined, like opacity, height, ...Link: http://api.jquery.com/animate/Example:$.animate({opacity: 0.2,margin-right: '12%'}, 200, 'swing',);

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...