jQuery w3schools 한글판 강좌28 - jQuery Effects - jQuery fadeOut() Method > 개발자팁

개발자팁

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

jQuery w3schools 한글판 강좌28 - jQuery Effects - jQuery fadeOut() Method 정보

jQuery jQuery w3schools 한글판 강좌28 - jQuery Effects - jQuery fadeOut() Method

본문

 jQuery w3schools 한글판 강좌28 - jQuery Effects - jQuery fadeOut() Method 

 

jQuery fadeOut() 메소드는 보여지는 요소를 점차로 사라지게 할때 사용됩니다


문법:

$(selector).fadeOut(speed,callback);

옵션인(추가로 사용해도 되는) speed 매개변수는 페이드아웃(점점 사라짐)효과의 구현시간을 지정하는데 쓰이며

 

다음의 값을 가질 수 있습니다: 

"slow", "fast", 또는 milliseconds.

 

옵션인(추가로 사용해도 되는) callback 매개변수는 페이드아웃이 완료되면 실행되는 함수입니다.

 

다음 예제는 서로다른(여러가지) 매개변수를 가지는 fadeOut() 메소드를 보여줍니다.:

 

Example

$("button").click(function(){
    $("#div1").fadeOut();
    $("#div2").fadeOut("slow");
    $("#div3").fadeOut(3000);
});

 

추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로