I’m trying to achieve the same mouse over image effect seen on wookmark and I’m assuming this is done with some jquery and css magic. Are there any good tutorials that show how this is done?
Looking through the jquery docs it seems I would need to use hover like so:
$("li.preview").hover(function(e){
// show and hide come css magic
});
Not sure where to go with the CSS portion of it…
You can create a wrapper around your image(s) and inside that wrapper you can have the buttons you want to appear/disappear on hover. Then just show/hide those buttons when the image is hovered.
HTML —
CSS —
You can also use CSS3 to fade-in/out the options element:
Here is a demo using only CSS: http://jsfiddle.net/fJsJb/
And of-course you can make the fade happen with JS:
Here is a demo using JS: http://jsfiddle.net/fJsJb/1/
UPDATE
You can also create a slide animation by animating the
topproperty like this:Here is a demo: http://jsfiddle.net/fJsJb/2/