[jQuery] Mouseover Fade for all Children Element
Heres a very simple script for those who looking for jQuery script that
:)
- Applies mouseover / mouseout fade,
- For all elements in a container.
jQuery(document).ready(function() {
jQuery.each(jQuery('.parent-class-to-apply-effect').children(), function() {
jQuery(this).mouseover(function() {
jQuery(this).fadeTo('slow', 0.8);
}).mouseout(function() {
jQuery(this).fadeTo("slow", 1.0);
});
});
});
:)
Comments
Post a Comment