.fadeIn ([duration] [, complete])

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

.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,426
jQuery 17-10-11 조회 1,897
jQuery 17-10-11 조회 2,008
jQuery 17-09-29 조회 2,234
jQuery 17-09-29 조회 2,480
jQuery 17-09-29 조회 2,018
jQuery 17-09-26 조회 1,941
jQuery 17-09-26 조회 2,025
jQuery
[jQuery]
17-09-26 조회 1,801
jQuery 17-09-22 조회 2,044
jQuery 17-09-22 조회 2,101
jQuery 17-09-22 조회 2,092
jQuery 17-09-21 조회 2,266
jQuery 17-09-21 조회 2,219
jQuery 17-09-21 조회 2,084
jQuery 17-09-19 조회 2,142
jQuery 17-09-19 조회 1,896
jQuery
[jQuery]
17-09-19 조회 1,881
jQuery
[jQuery]
17-09-18 조회 2,065
jQuery 17-09-18 조회 1,981
jQuery 17-09-18 조회 1,670
jQuery 17-09-14 조회 2,080
jQuery 17-09-14 조회 1,775
jQuery 17-09-14 조회 2,025
jQuery 17-09-11 조회 2,418
jQuery 17-09-11 조회 2,442
jQuery 17-09-11 조회 1,966
jQuery 17-09-10 조회 2,032
jQuery 17-09-10 조회 2,455
jQuery
[jQuery]
17-09-10 조회 1,915