css3动画幻灯片切换特效



66 260 87



特效描述: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

加群请备注:从官网了解到