ȸ¿ø°¡ÀԡžÆÀ̵ð/ºñ¹øã±â
ȨÀ¸·Î


jQuery fadeIn(), fadeOut(), fadeToggle(), fadeTo()
8³â Àü
fadeÀÇ »çÀüÀûÀÎ Àǹ̴ "õõÈ÷ »ç¶óÁö´Ù" , "Á¡Á¡ Èñ¹ÌÇØÁö´Ù" ¶ó´Â ¶æÀÔ´Ï´Ù. ±×·³ ´ëÃæ ¾î¶² Çö»óÀÌ ÀϾ°Ú±¸³ª ÇÏ´Â ÁüÀÛÀº ÇÒ ¼ö ÀÖÀ» °Ì´Ï´Ù.

jQuery fadeIn()
õõÈ÷ ³ªÅ¸³ª°Ô ÇÏ´Â ÇÔ¼ö ÀÔ´Ï´Ù.


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




°ü·Ã¿¹Á¦

<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeIn();
$("#div2").fadeIn("slow");
$("#div3").fadeIn(3000);
});
});
</script>
</head>

<body>
<p>fadeIn Çö»óÀ» È®ÀÎÇغ¸¼¼¿ä!</p>
<button>fadeIn ¹öÆ°À» Ŭ¸¯Çϼ¼¿ä</button>
<br><br>
<div id="div1" style="width:80px;height:80px;display:none;background-color:red;"></div><br>
<div id="div2" style="width:80px;height:80px;display:none;background-color:green;"></div><br>
<div id="div3" style="width:80px;height:80px;display:none;background-color:blue;"></div>

</body>
</html>

// ¿ì¼± ±âº»ÀûÀ¸·Î fadeIn()À» »ç¿ëÇϸç, °ýÈ£() ¾È¿¡ À§Ã³·³ ¿É¼ÇÀ» ÁÙ ¼ö ÀÖ½À´Ï´Ù.


jQuery fadeOut()
õõÈ÷ »ç¶óÁö°Ô ÇÏ´Â ÇÔ¼ö ÀÔ´Ï´Ù.


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




°ü·Ã¿¹Á¦

<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeOut();
$("#div2").fadeOut("slow");
$("#div3").fadeOut(3000);
});
});
</script>
</head>

<body>
<p>fadeOut Çö»óÀ» È®ÀÎÇغ¸¼¼¿ä!</p>
<button>fadeOut ¹öÆ°À» Ŭ¸¯Çϼ¼¿ä</button>
<br><br>
<div id="div1" style="width:80px;height:80px;background-color:red;"></div><br>
<div id="div2" style="width:80px;height:80px;background-color:green;"></div><br>
<div id="div3" style="width:80px;height:80px;background-color:blue;"></div>

</body>
</html>

// ¿ì¼± ±âº»ÀûÀ¸·Î fadeOut()À» »ç¿ëÇϸç, °ýÈ£() ¾È¿¡ À§Ã³·³ ¿É¼ÇÀ» ÁÙ ¼ö ÀÖ½À´Ï´Ù.



jQuery fadeToggle()
¾ÕÀå¿¡¼­ ¼³¸íÇѹ٠ÀÖ´Â Toggle()Àº (hide,show), (in,out) ÀÇ ±â´ÉÀ» µ¿½ÃÇØ ¼öÇàÇÏ´Â ÇÔ¼ö ÀÔ´Ï´Ù. ±×·¡¼­ fadeToggle()Àº õõÈ÷ »ç¶óÁö°í ³ªÅ¸³ª´Â Çö»óÀ» ¹Ýº¹ÀûÀ¸·Î ¼öÇàÇÕ´Ï´Ù.

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




°ü·Ã¿¹Á¦

<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeToggle();
$("#div2").fadeToggle("slow");
$("#div3").fadeToggle(3000);
});
});
</script>
</head>
<body>

<p>fadeToggle()ÀÇ Çö»óÀÌ ¹«¾ùÀÎÁö È®ÀÎÇغ¸¼¼¿ä.</p>
<button>fadeToggle Ŭ¸¯Çϼ¼¿ä</button>
<br><br>

<div id="div1" style="width:80px;height:80px;background-color:red;"></div>
<br>
<div id="div2" style="width:80px;height:80px;background-color:green;"></div>
<br>
<div id="div3" style="width:80px;height:80px;background-color:blue;"></div>

</body>
</html>



jQuery fadeTo()
fadeTo() ÇÔ¼ö´Â Åõ¸íµµ¸¦ Á¶ÀýÇÏ¿© ¿òÁ÷ÀÓÀ» ¸¸µé¾î ³»´Â ÇÔ¼öÀÔ´Ï´Ù. ±×¸®°í fadeTo() ÇÔ¼ö´Â ´Ù¸¥ ÇÔ¼ö¿Í ´Ù¸£°Ô ¹Ýµå½Ã ½Ã°£À» ¸í½ÃÇØ ÁÖ¾î¾ß ÇÕ´Ï´Ù.

$("button").click(function(){
$("#div1").fadeTo("slow",0.15);
$("#div2").fadeTo("slow",0.4);
$("#div3").fadeTo("slow",0.7);
});

// 0Àº 0Ãʸ¦ ÀǹÌÇϸç, 0.15´Â 1ÃÊ¿¡¼­ 15%¸¦ ÀǹÌÇϸç 1ÃÊ°¡ 100 À̶ó ÇÒ °æ¿ì 100ºÐÀÇ 15 ÀÇ ½Ã°£À» ÀǹÌÇÕ´Ï´Ù. 150 milliseconds ÀÔ´Ï´Ù. ¸¶Âù°¡Áö·Î 0.4, 0.7 ÀÇ Àǹ̸¦ °°ÀÌ »ý°¢ÇÏ¸é µÇ°Ú½À´Ï´Ù.




°ü·Ã¿¹Á¦

<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").fadeTo("slow",0.15);
$("#div2").fadeTo("slow",0.4);
$("#div3").fadeTo("slow",0.7);
});
});
</script>
</head>

<body>
<p>fadeTo()¿¡ ´ëÇؼ­ ¾Ë¾Æ º¸°Ú½À´Ï´Ù.</p>
<button>fadeTo Ŭ¸¯Çϼ¼¿ä</button>
<br><br>
<div id="div1" style="width:80px;height:80px;background-color:red;"></div><br>
<div id="div2" style="width:80px;height:80px;background-color:green;"></div><br>
<div id="div3" style="width:80px;height:80px;background-color:blue;"></div>

</body>
</html>
ÃßõÃßõ : 334 Ãßõ ¸ñ·Ï
¹øÈ£ Á¦¸ñ
365
jQuery.get() HTTP GET ¹æ½Ä Ajax ¿äû
364
jQuery.post(), Ajax HTTP POST ¹æ½Ä ¿äû
363
jQuery.getJSON, JSON µ¥ÀÌÅ͸¦ ·Îµå
362
jQuery length¿Í slideToggle ¿¹Á¦
361
[CSS] before¿Í after ¼±ÅÃÀÚ¸¦ ÀÌ¿ëÇÏ¿© Float ¼Ó¼º ÇØÁ¦
360
jQuery toggleClass() Methods
359
jQuery stop(),Callback,Chaining
358
jQuery Effects - Animation
357
jQuery Effects - Sliding
jQuery fadeIn(), fadeOut(), fadeToggle(), fadeTo()
355
jQuery hide(), show(), toggle()
354
jquery trigger(), ÇÔ¼ö ½ÇÇà½ÃÅ°±â
353
Æú´õ¾ÈÀÇ ÆÄÀÏ °¡Áö°í ³î±â
352
ÆÄÀ̽㿡¼­ À¯´ÏÄÚµå ½ºÆ®¸² ´Ù·ç±â
351
Python 2.x ÇÑ±Û ÀÎÄÚµù °ü·Ã Á¤¸®
350
htmlspecialchars, entity decode
349
Php : Finding Chrome and Safari Browsers
348
[Shoutcast] jPlayer and Shoutcast Configuration
347
[Shoutcast] ÇöÀç Ç÷¹À̵Ǵ °î¸í ½ºÅ©¸³Æ® PHP
346
[Shoutcast] ½ºÆ®¸®¹Ö ³ë·¡Á¦¸ñÀ» º¯°æ ½ºÅ©¸³Æ®
345
Shoutcast PHP Scripts
344
FTP¿¡¼­ »èÁ¦ ¾ÈµÇ´Â ÆÄÀÏÀ̳ª Æú´õ »èÁ¦Çϱâ
343
DAUM ¿ìÆí¹øÈ£ ¼­ºñ½º È°¿ëÇϱâ
342
jquery checkbox Àüü ¼±ÅÃ, Àüü ÇØÁ¦, üũ °ª ÃßÃâ
341
Setting .htaccess to allow PHP to be accessed with .xml extension
340
jQuery API: Manipulation, Events, Effects, Internals, Utilities
339
[Android] Intent È°¿ë ¿¹½Ã
338
HTML5 °ü·Ã À¯¿ëÇÑ ·¹ÆÛ(ÂüÁ¶) »çÀÌÆ®
337
IE6~7 ¹®Á¦ÇØ°á
336
³ª´®°íµñ ±¸±Û À¥ÆùÆ®(Webfont) »ç¿ëÇϱâ
¸ñ·Ï
¹ÂÁ÷Æ®·ÎÆ® ºÎ»ê±¤¿ª½Ã ºÎ»êÁø±¸ °¡¾ßµ¿ ¤Ó °³ÀÎÁ¤º¸Ãë±Þ¹æħ
Copyright ¨Ï musictrot All rights reserved.