상자를 클릭 한 후 상자를 닫은 후에 상자가 사라지고 상자가 사라지고 효과가 나타나고 싶습니다. 일부 작업은했으나 아래쪽 만 사용합니다. 효과가 좋지 않은 경우 상자를 더 크게 만들고 싶습니다. 누군가가 나를 도울 수 있다면 http://jsfiddle.net/wY8Wb/? 감사jQuery image fade 확대 위아래 px
0
A
답변
2
확인이 데모 : http://jsfiddle.net/wY8Wb/3/
코드 :
$('#videoimg').click(function(){
$(this).fadeOut('slow');
$('#color')
.css({
top: ($(this).offset().top + $(this).height()/2) + 'px',
height: 0
})
.animate({
// the hard-coded "9" you see below is half of the
// difference between the final heights of the 2 divs == (300-282)/2.
// Given here so as to have the color div expand out
// equally at top and bottom
top: ($(this).offset().top - 9) + 'px',
height: '300px'
}, 'slow');
})
1
JSFiddle : http://jsfiddle.net/wY8Wb/17/
$(document).ready(function(){
$('#videoimg').click(function(){
$(this).fadeOut('slow');
$('#color').animate({height: '300px', top: '0px'}, 'slow');
})
});
변경된 CSS도
관련 문제
- 1. Image NSImageView의 축소 확대
- 2. jQuery cycle fade effect mouseover
- 3. jquery 이미지 바꾸기에 fade 추가하기
- 4. jquery fade popupwindow
- 5. jQuery Tab Fade Animation
- 6. jquery fade issue
- 7. jquery fade in issues
- 8. jQuery : Toggle & Fade In?
- 9. Jquery hover fade thumbnails
- 10. Jquery - background fade.
- 11. Jquery content fade help!
- 12. jquery fade content
- 13. jQuery : Fade not working
- 14. Jquery Image preview plugin
- 15. jquery image slide
- 16. jQuery image on image
- 17. Jquery Fade In이 Safari에서 작동하지 않습니다.
- 18. jQuery cycle fade on hover
- 19. jquery by class fade out
- 20. jquery element cross fade plugin
- 21. JQuery Progress Circle + Fade 페이지?
- 22. jQuery UI 슬라이더 용 CSS 위아래 버튼
- 23. jquery woes, image replacement
- 24. jquery fade in, 이미지 위에있는 이미지
- 25. JQuery resize thumbnail image
- 26. Photoshop px vs. OS px
- 27. Jqgrid fade In fade out?
- 28. 이미지 변경 px
- 29. Howto 확대/축소 WinRT Image Control
- 30. C# Winform Image 픽셀로 확대/축소