jQuery和CSS3炫酷旋转木马布局特效
源码介绍
这是一款jQuery和CSS3炫酷旋转木马布局特效。该特效使用slick.js来制作,支持移动触摸事件,可以在移动手机上使用。 在页面中引入下面的文件。 该jQuery和CSS3炫酷旋转木马布局的基本HTML结构如下。 该jQuery和CSS3炫酷旋转木马布局特效的官方网址为:https://coidea.website/categories/challenges/motion-study-with-slick-slider/简要教程
使用方法
<link rel="stylesheet" type="text/css" href="assets/css/base.css" />
<link rel="stylesheet" type="text/css" href="css/slick.min.css"/>
<link rel="stylesheet" type="text/css" href="assets/css/demo.css" />
<script src="assets/js/jquery-2.1.1.min.js"></script>
<script src="js/slick.min.js"></script>
<script src="assets/js/demo.js"></script>
HTML结构
<header class="coidea-header">
<div class="coidea-links">
<a class="coidea-icon-back" href="" title="Back to the article">C</a>
<a class="coidea-icon-github" href="http://www.htmleaf.com/" target="_blank" title="This article on Github">G</a>
</div>
</header>
<div class="carousel">
<div class="slider slider-for">
<div class="item" style="background-image: url(assets/img/img-1.jpg)"></div>
<div class="item" style="background-image: url(assets/img/img-2.jpg)"></div>
<div class="item" style="background-image: url(assets/img/img-3.jpg)"></div>
<div class="item" style="background-image: url(assets/img/img-4.jpg)"></div>
<div class="item" style="background-image: url(assets/img/img-5.jpg)"></div>
</div>
<div class="slider slider-nav">
<div class="nav-item">
<div class="content" style="background-image: url(assets/img/img-1.jpg)">
<div class="number">01</div>
<div class="body">
<div class="location">Mong Kok, Hong Kong</div>
<div class="headline">Photo by<br>Ryan Tang</div>
<a href="#0">
<div class="link">Read the Story</div>
</a>
</div>
</div>
</div>
<div class="nav-item">
<div class="content" style="background-image: url(assets/img/img-2.jpg)">
<div class="number">02</div>
<div class="body">
<div class="location">Shibuya, Japan</div>
<div class="headline">Photo by<br>Benjamin Hung</div>
<a href="#0">
<div class="link">Read the Story</div>
</a>
</div>
</div>
</div>
......
<div class="navigation">
<button class="forward"> > </button>
<button class="back"> < </button>
</div>
</div>
本站资源均来自互联网,仅供研究学习,禁止违法使用和商用,产生法律纠纷本站概不负责!如果侵犯了您的权益请与我们联系!
转载请注明出处: 免费源码网-免费的源码资源网站 » jQuery和CSS3炫酷旋转木马布局特效
发表评论 取消回复