Jquery 모바일: 트랜지션(Transition)
페이지 이동시 트랜지션을 줘서 전환하는 방식을 ppt처럼 다양하게 바꿀 수 있다.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JQuery Mobile</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<!-- 첫번째 페이지 -->
<section id="page1" data-role="page">
<header data-role="header">
<h1>JQuery Mobile</h1>
</header>
<div class="content" data-role="content">
<p>첫번째 페이지</p>
<a href="#page2" data-role="button" data-transition="slide">두번째 페이지로 슬라이드</a>
</div>
<footer data-role="footer">
<h2>ⓒcopyright 2016</h2>
</footer>
</section>
<!-- 2번째 페이지 -->
<section id="page2" data-role="page">
<header data-role="header">
<h1>JQuery Mobile</h1>
</header>
<div class="content" data-role="content">
<p>트랜지션</p>
<a href="#page1" data-role="button" data-transition="slideup">슬라이드 업</a>
<a href="#page1" data-role="button" data-transition="slidedown">슬라이드 다운</a>
<a href="#page1" data-role="button" data-transition="pop">pop</a>
<a href="#page1" data-role="button" data-transition="fade">fade</a>
<a href="#page1" data-role="button" data-transition="flip">flip</a>
</div>
<footer data-role="footer">
<h2>ⓒcopyright 2016</h2>
</footer>
</section>
</body>
</html>
'jQuery Mobile' 카테고리의 다른 글
Jquery 모바일: 테마 (0) | 2016.06.01 |
---|---|
Jquery 모바일: 이전 페이지로 이동 (0) | 2016.06.01 |
Jquery 모바일: 버튼 그룹 (0) | 2016.05.31 |
Jquery 모바일: 버튼 아이콘 (0) | 2016.05.31 |
Jquery 모바일: 다이얼로그(dialog) (0) | 2016.05.31 |