Last active
December 15, 2015 10:49
-
-
Save SErr0r/5248540 to your computer and use it in GitHub Desktop.
Прозрачность объектов IMG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ***** Прозрачность объектов IMG ***** // | |
$(document).ready(function(){ | |
$("#transparency img").fadeTo("slow", 0.6); // Эта строчка при загрузке страницы задает всем миниатюрам прозрачность равную 60% | |
$("#transparency img").hover(function(){ | |
$(this).fadeTo("slow", 1.0); // Делаем картинку непрозрачной, при наведении мыши | |
},function(){ | |
$(this).fadeTo("slow", 0.6); // Снова возвращаем прозрачность 60%, при отведении мыши | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment