Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- var selectedClass = "";
- $(".fil-pic").click(function(){
- selectedClass = $(this).attr("data-rel");
- $("#mygallery").fadeTo(100, 0.1);
- $("#mygallery a").not("."+selectedClass).fadeOut().removeClass('scale-anm');
- setTimeout(function() {
- $("."+selectedClass).fadeIn().addClass('scale-anm');
- $("#mygallery").fadeTo(300, 1);
- }, 300);
- });
- });
Add Comment
Please, Sign In to add comment