css3動畫幻燈片切換特效



68 270 91



特效描述:css3 動畫幻燈片切換,css3動畫幻燈片切換特效

代碼結構

1. 引入CSS

<link rel='stylesheet' href='css/font-awesome.min.css'>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css">
<link rel="stylesheet" href="css/style.css">

2. HTML代碼

<div class='ui'>
  <div class='ui_inner'>
	<div class='ui_fruit'>
	  <img src='img/treats.png'>
	</div>
	<div class='ui_basket'>
	  Basket
	  <i class='fa fa-shopping-cart'></i>
	</div>
	<div class='ui_inner__selection'>
	  <input checked='checked' id='lovely' name='selection' type='radio'>
	  <label for='lovely'>
		<div class='selected l'>Lovely cupcake</div>
		<div class='ui_inner__slider'>
		  <div class='sb'>
			<img src='img/starburst2.png'>
		  </div>
		  <div class='slide'>
			<div class='slide_inner'>
			  <div class='slide_inner__left'>
				<img src='img/cupcake1.png'>
				<div class='firework'>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				</div>
			  </div>
			  <div class='slide_inner__right'>
				<h2>Lovely cupcake</h2>
				<h3>$4.99 <span> Pack of 10</span></h3>
				<p>Pie cupcake caramels marshmallow ice cream icing. Brownie biscuit candy macaroon dessert ice cream halvah. Cheesecake sweet roll marzipan brownie lollipop gummies.</p>
				<input type='text' value='10'>
				<input class='hid' id='add' type='checkbox'>
				<label for='add'>
				  <div class='add'>
					Add to cart
					<div class='firework'>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					</div>
				  </div>
				</label>
			  </div>
			</div>
		  </div>
		</div>
	  </label>
	  <input id='super' name='selection' type='radio'>
	  <label for='super'>
		<div class='selected s'>Super cupcake</div>
		<div class='ui_inner__slider'>
		  <div class='sb'>
			<img src='img/starburst2.png'>
		  </div>
		  <div class='slide'>
			<div class='slide_inner'>
			  <div class='slide_inner__left'>
				<img src='img/cupcake2.png'>
				<div class='firework'>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				</div>
			  </div>
			  <div class='slide_inner__right'>
				<h2>Super cupcake</h2>
				<h3>$4.99 <span> Pack of 10</span></h3>
				<p>Pie cupcake caramels marshmallow ice cream icing. Brownie biscuit candy macaroon dessert ice cream halvah. Cheesecake sweet roll marzipan brownie lollipop gummies.</p>
				<input type='text' value='10'>
				<input class='hid' id='add2' type='checkbox'>
				<label for='add2'>
				  <div class='add'>
					Add to cart
					<div class='firework'>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					</div>
				  </div>
				</label>
			  </div>
			</div>
		  </div>
		</div>
	  </label>
	  <input id='mega' name='selection' type='radio'>
	  <label for='mega'>
		<div class='selected m'>Mega cupcake</div>
		<div class='ui_inner__slider'>
		  <div class='sb'>
			<img src='img/starburst2.png'>
		  </div>
		  <div class='slide'>
			<div class='slide_inner'>
			  <div class='slide_inner__left'>
				<img src='img/cupcake3.png'>
				<div class='firework'>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				</div>
			  </div>
			  <div class='slide_inner__right'>
				<h2>Mega cupcake</h2>
				<h3>$4.99 <span> Pack of 10</span></h3>
				<p>Pie cupcake caramels marshmallow ice cream icing. Brownie biscuit candy macaroon dessert ice cream halvah. Cheesecake sweet roll marzipan brownie lollipop gummies.</p>
				<input type='text' value='10'>
				<input class='hid' id='add3' type='checkbox'>
				<label for='add3'>
				  <div class='add'>
					Add to cart
					<div class='firework'>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					</div>
				  </div>
				</label>
			  </div>
			</div>
		  </div>
		</div>
	  </label>
	  <input id='huge' name='selection' type='radio'>
	  <label for='huge'>
		<div class='selected h'>Huge cupcake</div>
		<div class='ui_inner__slider'>
		  <div class='sb'>
			<img src='img/starburst2.png'>
		  </div>
		  <div class='slide'>
			<div class='slide_inner'>
			  <div class='slide_inner__left'>
				<img src='img/cupcake4.png'>
				<div class='firework'>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				  <div class='firework_part'></div>
				</div>
			  </div>
			  <div class='slide_inner__right'>
				<h2>Huge cupcake</h2>
				<h3>$9.99 <span> Pack of 10</span></h3>
				<p>Pie cupcake caramels marshmallow ice cream icing. Brownie biscuit candy macaroon dessert ice cream halvah. Cheesecake sweet roll marzipan brownie lollipop gummies.</p>
				<input type='text' value='10'>
				<input class='hid' id='add4' type='checkbox'>
				<label for='add4'>
				  <div class='add'>
					Add to cart
					<div class='firework'>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					  <div class='firework_part'></div>
					</div>
				  </div>
				</label>
			  </div>
			</div>
		  </div>
		</div>
	  </label>
	</div>
  </div>
</div>



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


熱門標簽: 圖片翻轉 圖片旋轉 圖片全屏 圖片淡出淡進 圖片淡出 圖片淡進 圖片延遲加載 圖片延遲 圖片加載 圖片疊加 圖片層疊 圖片放大鏡 頭像上傳 圖片上傳 圖片拖動 圖片拖拽 二維碼 帶縮略圖的幻燈片 滾動切換 滾動條切換 圖片放大縮小 圖片縮放 圖片大小 圖片放大 圖片縮小 圖片變大 圖片變小 滑動選項卡 滑動切換 加載動畫 地圖 中國地圖 世界地圖 h5圖片動畫 h5圖標動畫 html5圖片動畫 html5圖標動畫 圖片廣告 純圖片輪播 圖片輪播 旋轉木馬 圖片旋轉木馬 文字旋轉木馬 旋轉木馬插件 圖片滾動 圖片滾動條 圖片收縮展開 圖片收縮 圖片展開 圖片滑動 圖片滑塊 圖片切換 圖片選項卡 圖標選項卡 自動滾動圖片輪播 圖標導航 圖標菜單 選項卡切換 選項卡 切換 tab切換 頁面切換 選項卡插件 切換插件 背景切換 大圖切換 滑動手風琴 手風琴 水平手風琴 垂直手風琴 圖片手風琴 文字手風琴 手風琴插件 h5彈窗動畫 html5彈窗動畫 h5動畫 h5背景動畫 h5場景動畫 h53D動畫 h5界面動畫 html5動畫 圖表 圖片 圖片插件 頭像截圖 h5按鈕動畫 html5按鈕動畫 h5圖片動畫 h5圖標動畫 html5圖片動畫 html5圖標動畫 圖片切換 圖片選項卡 圖標選項卡 選項卡自動切換 圖片切換 切換圖片
?
×
×

注冊

官方QQ群

掃描上面二維碼加微信群

官方QQ群

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

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

老夫子电子