利用Anime js实现全屏图片视差切换插件



91 363 122



特效描述:利用Anime js实现 全屏图片视差 切换插件,利用Anime js实现全屏图片视差切换插件

代码结构

1. 引入CSS

<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/reset.css">
<link rel="stylesheet" type="text/css" href="assets/css/demo.css" />

2. 引入JS

<script src="assets/js/anime.min.js" type="text/javascript"></script>
<script src="assets/js/demo.js"></script>

3. HTML代码

<section class="page-wrapper" id="coidea">
  <div class="slider">
	<ul class="slider-list">
	  <li class="slider-list__item slider-list__item_active">
		<span class="back__element">
		  <img src="assets/img/back_apple_002.png" />
		</span>
		<span class="main__element">
		  <img src="assets/img/bottle_apple_002.png" />
		</span>
		<span class="front__element">
		  <img src="assets/img/front_apple_002.png" />
		</span>
		<span class="title__element">
		  <span class="title">apple</span>
		</span>
		<span class="more__element">
		  <span class="content">
			<span class="headline">apple</span>
			<span class="excerpt">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Illo ratione nisi perferendis? Nemo in accusamus cupiditate officiis.</span>
			<span class="link">
			  <div class="fill"></div>
			  <a href="#">Open catalog</a>
			</span>
		  </span>
		</span>
	   </li>
	  <li class="slider-list__item">
		<span class="back__element">
		  <img src="assets/img/back_grapes_001.png" />
		</span>
		<span class="main__element">
		  <img src="assets/img/bottle_grapes_001.png" />
		</span>
		<span class="front__element">
		  <img src="assets/img/front_grapes_001.png" />
		</span>
		<span class="title__element">
		  <span class="title">grapes</span>
		</span>
		<span class="more__element">
		  <span class="content">
			<span class="headline">grapes</span>
			<span class="excerpt">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Illo ratione nisi perferendis? Nemo in accusamus cupiditate officiis.</span>
			<span class="link">
			  <div class="fill fill-dark"></div>
			  <a href="#">Open catalog</a>
			</span>
		  </span>
		</span>
	   </li>
	   <li class="slider-list__item">
		<span class="back__element">
		  <img src="assets/img/back_strawberry_003.png" />
		</span>
		<span class="main__element">
		  <img src="assets/img/bottle_strawberry_003.png" />
		</span>
		<span class="front__element">
		  <img src="assets/img/front_strawberry_003.png" />
		</span>
		<span class="title__element">
		  <span class="title">strawberry</span>
		</span>
		<span class="more__element">
		  <span class="content">
			<span class="headline">strawberry</span>
			<span class="excerpt">Lorem ipsum dolor, sit amet consectetur adipisicing elit. Illo ratione nisi perferendis? Nemo in accusamus cupiditate officiis.</span>
			<span class="link">
				<div class="fill"></div>
			  <a href="#">Open catalog</a>
			</span>
		  </span>
		</span>
	   </li>
	</ul>
	<div class="slider__nav-bar">
	  <a class="nav-control"></a>
	  <a class="nav-control"></a>
	  <a class="nav-control"></a>
	</div>
	<div class="slider__controls">
	  <a class="slider__arrow slider__arrow_prev"></a>
	  <a class="slider__arrow slider__arrow_next"></a>
	</div>
  </div>      
</section>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>



用户评论
大牛,别默默的看了,快登录帮我点评一下吧!:)      登录 | 注册


热门标签: 导航切换 图片头像上传 文件上传 图片切换 文本框 文字切换 下拉框 背景切换 复选 手风琴 单选 选项卡自动切换 登录框 视频切换 注册框 列表切换 搜索框 验证码 渐隐切换 二级联动 全屏切换 三级联动 切换按钮 城市选择 缩放切换 value赋值 筛选 按钮控制 购物车 颜色选择 表单提交 全选/反选 添加删除 添加标签 密码强度验证 表单验证 html5按钮动画 按钮样式 密码修改设置 滚动切换 滑动选项卡切换 选项卡切换 滑动手风琴 切换按钮 form表单

×
×

注册

官方QQ群

扫描上面二维码加微信群

官方QQ群

jQuery/js讨论群
群号:642649996
Css3+Html5讨论群
群号:322131262

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