I’m not quite sure how to call the effect as I don’t understand the difference when you say javascript or jquery. I canno’t make anything.
So, I am making an menu in html/css and I want to make an fade effect when hovering menu item. I am not sure if such a thing exists, but I’ve found a few examples that are sort of it, but not exactly what I need.
http://greg-j.com/static-content/hover-fade.html
http://www.jacklmoore.com/blend
In both things there is the effect that I want but there are items/buttons with normal and hover part.
What I have is only hover state 🙂
So it is basically an image as background of menu and other image for hovering state.
Is there any chance to make this “appear/disappear” fade effect with just one image used for (hovering) or there must be normal and hover state to make it work?
Check out CSS3 transition.
Here is some CSS to fade an element on hover.
You just have to give your element the .fade class like this:
Although it does not have to be text – it can be a button, an image, etc.
Taken from http://bavotasan.com/2011/a-simple-fade-with-css3/