제목 : jQuery UI Easing Function : 미리 정의된 32가지 효과 부여하기
글번호:
|
|
2
|
작성자:
|
|
Administrator ( 레드플러스 / redplus@live.com )
|
작성일:
|
|
2012/05/15 오전 4:44:29
|
조회수:
|
|
5234
|
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<title>Easing Function</title>
<style type="text/css">
#theEasing { width:100px; height:100px; background-color:Yellow; }
</style>
<script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../js/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('#theEasing').click(function () {
$(this).css("position", "relative");
// easing function 데모 : http://jqueryui.com/demos/effect/#easing
//$(this).animate({ left: 300 }, 1000, "linear");
$(this).animate({ left: 300 }, 1000, "easeInElastic");
});
});
</script>
</head>
<body>
<h1>jQuery Effects</h1>
<h3>Easing Function</h3>
<div id="theEasing"></div>
</body>
</html>