수

.fadeIn ([duration] [, complete])

· 2017-09-19 (화) 13:52:27 · 1919

.fadeIn ([duration] [, complete])


설명 : 일치하는 요소를 불투명하게 페이드하여 표시합니다.


이 .fadeIn()메서드는 일치하는 요소의 불투명도를 애니메이션으로 나타냅니다. 이 .fadeTo()메서드 는 메서드 와 비슷 하지만 메서드에서 요소를 숨김 처리하지 않고 최종 불투명도 수준을 지정할 수 있습니다.


기간은 밀리 초 단위로 표시됩니다. 값이 높을수록 느린 애니메이션이 아니라 빠른 애니메이션이 표시됩니다. 문자열 'fast'및 'slow'은 각각 지속 시간 200및 600밀리 초 를 나타 내기 위해 제공 될 수 있습니다 . 다른 문자열이 제공되거나 duration매개 변수가 생략되면 기본 기간 인  400밀리 초가 사용됩니다.


간단한 이미지와 같은 요소를 애니메이트 할 수 있습니다.


<div id="clickme">

  Click here

</div>

<img id="book" src="book.png" alt="" width="100" height="123">

 

// With the element initially hidden, we can show it slowly:

$( "#clickme" ).click(function() {

  $( "#book" ).fadeIn( "slow", function() {

    // Animation complete

  });

});

|
댓글을 작성하시려면 로그인이 필요합니다.

개발자팁

5,403건

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
jQuery 17-10-11 조회 2,477
jQuery 17-10-11 조회 1,949
jQuery 17-10-11 조회 2,050
jQuery 17-09-29 조회 2,274
jQuery 17-09-29 조회 2,510
jQuery 17-09-29 조회 2,056
jQuery 17-09-26 조회 1,978
jQuery 17-09-26 조회 2,068
jQuery
[jQuery]
17-09-26 조회 1,841
jQuery 17-09-22 조회 2,084
jQuery 17-09-22 조회 2,144
jQuery 17-09-22 조회 2,111
jQuery 17-09-21 조회 2,305
jQuery 17-09-21 조회 2,256
jQuery 17-09-21 조회 2,123
jQuery 17-09-19 조회 2,182
jQuery 17-09-19 조회 1,920
jQuery
[jQuery]
17-09-19 조회 1,922
jQuery
[jQuery]
17-09-18 조회 2,088
jQuery 17-09-18 조회 1,999
jQuery 17-09-18 조회 1,703
jQuery 17-09-14 조회 2,114
jQuery 17-09-14 조회 1,810
jQuery 17-09-14 조회 2,048
jQuery 17-09-11 조회 2,439
jQuery 17-09-11 조회 2,478
jQuery 17-09-11 조회 1,993
jQuery 17-09-10 조회 2,057
jQuery 17-09-10 조회 2,492
jQuery
[jQuery]
17-09-10 조회 1,943