Jump to content

Menu easing


Snafen45
 Share

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

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...