jquery css3 animation屬性多個頁面切換動畫按鈕菜單控制頁面切換動畫



80 316 106



特效描述:jquery css3 animation屬性 多個頁面切換 動畫按鈕菜單 頁面切換動畫,多個頁面切換動畫按鈕菜單控制頁面切換動畫

代碼結構

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/default.css" />
<link rel="stylesheet" type="text/css" href="css/multilevelmenu.css" />
<link rel="stylesheet" type="text/css" href="css/component.css" />
<link rel="stylesheet" type="text/css" href="css/animations.css" />

2. 引入JS

<script src="js/modernizr.custom.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.dlmenu.js"></script>
<script type="text/javascript" src="js/pagetransitions.js"></script>

3. HTML代碼

<div class="pt-triggers">
	<button id="iterateEffects" class="pt-touch-button">Show next page transition</button>
	<div id="dl-menu" class="dl-menuwrapper">
		<button class="dl-trigger">Choose a transition</button>
		<ul class="dl-menu">
			<li>
				<a href="#">Move</a>
				<ul class="dl-submenu">
					<li data-animation="1"><a href="#">Move to left/ from right</a></li>
					<li data-animation="2"><a href="#">Move to right/ from left</a></li>
					<li data-animation="3"><a href="#">Move to top/ from bottom</a></li>
					<li data-animation="4"><a href="#">Move to bottom/ from top</a></li>
				</ul>
			</li>
			<li>
				<a href="#">Fade</a>
				<ul class="dl-submenu">
					<li data-animation="5"><a href="#">Fade / from right</a></li>
					<li data-animation="6"><a href="#">Fade / from left</a></li>
					<li data-animation="7"><a href="#">Fade / from bottom</a></li>
					<li data-animation="8"><a href="#">Fade / from top</a></li>
					<li data-animation="9"><a href="#">Fade left / Fade right</a></li>
					<li data-animation="10"><a href="#">Fade right / Fade left</a></li>
					<li data-animation="11"><a href="#">Fade top / Fade bottom</a></li>
					<li data-animation="12"><a href="#">Fade bottom / Fade top</a></li>
				</ul>
			</li>
			<li>
				<a href="#">Different easing</a>
				<ul class="dl-submenu">
					<li data-animation="13"><a href="#">Different easing / from right</a></li>
					<li data-animation="14"><a href="#">Different easing / from left</a></li>
					<li data-animation="15"><a href="#">Different easing / from bottom</a></li>
					<li data-animation="16"><a href="#">Different easing / from top</a></li>
				</ul>
			</li>
			<li>
				<a href="#">Scale</a>
				<ul class="dl-submenu">
					<li data-animation="17"><a href="#">Scale down / from right</a></li>
					<li data-animation="18"><a href="#">Scale down / from left</a></li>
					<li data-animation="19"><a href="#">Scale down / from bottom</a></li>
					<li data-animation="20"><a href="#">Scale down / from top</a></li>
					<li data-animation="21"><a href="#">Scale down / scale down</a></li>
					<li data-animation="22"><a href="#">Scale up / scale up</a></li>
					<li data-animation="23"><a href="#">Move to left / scale up</a></li>
					<li data-animation="24"><a href="#">Move to right / scale up</a></li>
					<li data-animation="25"><a href="#">Move to top / scale up</a></li>
					<li data-animation="26"><a href="#">Move to bottom / scale up</a></li>
					<li data-animation="27"><a href="#">Scale down / scale up</a></li>
				</ul>
			</li>
			<li>
				<a href="#">Rotate</a>
				<ul class="dl-submenu">
					<li>
						<a href="#">Glue</a>
						<ul class="dl-submenu">
							<li data-animation="28"><a href="#">Glue left / from right</a></li>
							<li data-animation="29"><a href="#">Glue right / from left</a></li>
							<li data-animation="30"><a href="#">Glue bottom / from top</a></li>
							<li data-animation="31"><a href="#">Glue top / from bottom</a></li>
						</ul>
					</li>
					<li>
						<a href="#">Flip</a>
						<ul class="dl-submenu">
							<li data-animation="32"><a href="#">Flip right</a></li>
							<li data-animation="33"><a href="#">Flip left</a></li>
							<li data-animation="34"><a href="#">Flip top</a></li>
							<li data-animation="35"><a href="#">Flip bottom</a></li>
						</ul>
					</li>
					<li data-animation="36"><a href="#">Fall</a></li>
					<li data-animation="37"><a href="#">Newspaper</a></li>
					<li>
						<a href="#">Push / Pull</a>
						<ul class="dl-submenu">
							<li data-animation="38"><a href="#">Push left / from right</a></li>
							<li data-animation="39"><a href="#">Push right / from left</a></li>
							<li data-animation="40"><a href="#">Push top / from bottom</a></li>
							<li data-animation="41"><a href="#">Push bottom / from top</a></li>
							<li data-animation="42"><a href="#">Push left / pull right</a></li>
							<li data-animation="43"><a href="#">Push right / pull left</a></li>
							<li data-animation="44"><a href="#">Push top / pull bottom</a></li>
							<li data-animation="45"><a href="#">Push bottom / pull top</a></li>
						</ul>
					</li>
					<li>
						<a href="#">Fold / Unfold</a>
						<ul class="dl-submenu">
							<li data-animation="46"><a href="#">Fold left / from right</a></li>
							<li data-animation="47"><a href="#">Fold right / from left</a></li>
							<li data-animation="48"><a href="#">Fold top / from bottom</a></li>
							<li data-animation="49"><a href="#">Fold bottom / from top</a></li>
							<li data-animation="50"><a href="#">Move to right / unfold left</a></li>
							<li data-animation="51"><a href="#">Move to left / unfold right</a></li>
							<li data-animation="52"><a href="#">Move to bottom / unfold top</a></li>
							<li data-animation="53"><a href="#">Move to top / unfold bottom</a></li>
						</ul>
					</li>
					<li>
						<a href="#">Room</a>
						<ul class="dl-submenu">
							<li data-animation="54"><a href="#">Room to left</a></li>
							<li data-animation="55"><a href="#">Room to right</a></li>
							<li data-animation="56"><a href="#">Room to top</a></li>
							<li data-animation="57"><a href="#">Room to bottom</a></li>
						</ul>
					</li>
					<li>
						<a href="#">Cube</a>
						<ul class="dl-submenu">
							<li data-animation="58"><a href="#">Cube to left</a></li>
							<li data-animation="59"><a href="#">Cube to right</a></li>
							<li data-animation="60"><a href="#">Cube to top</a></li>
							<li data-animation="61"><a href="#">Cube to bottom</a></li>
						</ul>
					</li>
					<li>
						<a href="#">Carousel</a>
						<ul class="dl-submenu">
							<li data-animation="62"><a href="#">Carousel to left</a></li>
							<li data-animation="63"><a href="#">Carousel to right</a></li>
							<li data-animation="64"><a href="#">Carousel to top</a></li>
							<li data-animation="65"><a href="#">Carousel to bottom</a></li>
						</ul>
					</li>
					<li data-animation="66"><a href="#">Sides</a></li>
				</ul>
			</li>
			<li data-animation="67"><a href="#">Slide</a></li>
		</ul>
	</div><!-- /dl-menu-wrapper-->
</div><!-- /triggers -->
<div id="pt-main" class="pt-perspective">
	<div class="pt-page pt-page-1"><h1><span>A collection of</span><strong>Page</strong> Transitions</h1>
	</div>
	<div class="pt-page pt-page-2"><h1><span>A collection of</span><strong>Page</strong> Transitions</h1></div>
	<div class="pt-page pt-page-3"><h1><span>A collection of</span><strong>Page</strong> Transitions</h1></div>
	<div class="pt-page pt-page-4"><h1><span>A collection of</span><strong>Page</strong> Transitions</h1></div>
	<div class="pt-page pt-page-5"><h1><span>A collection of</span><strong>Page</strong> Transitions</h1></div>
	<div class="pt-page pt-page-6"><h1><span>A collection of</span><strong>Page</strong> Transitions</h1></div>
</div>
<div class="pt-message">
	<p>Your browser does not support CSS animations.</p>
</div>



用戶評論
大牛,別默默的看了,快登錄幫我點評一下吧!:)      登錄 | 注冊


熱門標簽: flash導航菜單 flash導航條 flash導航 flash菜單 flash下拉菜單 flash下拉導航菜單 h5動畫導航 h5動畫菜單 html5動畫導航 html5動畫菜單 收縮菜單 收縮導航 右鍵菜單 滾動導航菜單 滾動菜單 滾動導航 導航切換 菜單切換 滑動導航菜單 滑動導航 滑動菜單 浮動菜單 浮動導航 滑動 滑塊 滑動門 觸屏滑動 滑動插件 滑塊插件 滑動選項卡 滑動切換 滾動切換 滾動條切換 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 滑動手風琴 切換按鈕 表單 表單美化 表單插件 表單美化插件 導航菜單 導航條 菜單欄 導航欄 分類導航 響應式導航條 響應式導航 滑動導航菜單 滑動導航 滑動菜單 二級菜單 二級導航菜單 二級導航 下拉列表 下拉菜單 下拉導航 下拉導航菜單 下拉菜單導航 響應式下拉菜單 圖片滑動 圖片滑塊 圖片切換 圖片選項卡 圖標選項卡 按鈕控制
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

jQuery/js討論群
群號:642649996
Css3+Html5討論群
群號:322131262

加群請備注:從官網了解到

老夫子电子