2012-04-08 7 views

답변

2

두 개의 개별 이미지와 함께 jquery가 표시되고 페이드 인/페이 아웃됩니다.

당신은 (F12 타격 시도) 아마 당신의 브라우저에 내장 된 뷰 소스/개발자 도구를 사용하는 방법을 배우게한다

.

$("div.casestudy img.hovered").hide(); 
$("div.casestudy").hover(function() { 
$(this).find('img').fadeIn(200); 
}, function() { 
$(this).find('img.hovered').fadeOut(200); 
}); 

http://www.45royale.com/wp-content/themes/45v6_sandbox/images/work/img_dww.jpg

http://www.45royale.com/wp-content/themes/45v6_sandbox/images/work/img_dww_hovered.jpg

+0

내 나쁜, 잘 작동합니다. 나는 1 시간 동안의 코드를 찾았고 couldnt는 그것을 발견한다. 덕분에 – johnnE

0

당신이 중 하나에 의해 같은 효과를 하나 개의 이미지를 고수하고 얻을 수 :

는 여기에 관련 코드의

HTML5와 greyscale to colour에서가는
  1. 캔버스와 jQuery (나에서 작동하지 않습니다. e8).
  2. 그냥 불투명도를 거절하고 같은있는 HTML 캡션을 오버레이 : 그런

    $("div.casestudy").hover(function() { 
    $(this).find('caption').fadeIn(200); 
    $(this).find('img.hovered').animate({"opacity": "0.3"}, "slow"); 
    }, function() { 
    $(this).find('caption').fadeOut(200); 
    $(this).find('img.hovered').animate({"opacity": "1"}, "slow"); 
    }); 
    

이나 뭐 어쨌든

+0

고맙습니다. 시도해 볼 수 있습니다. – johnnE