幻灯片/轮播

CSS3炫酷旋转木马布局jQuery特效

阿里云


这是一款 jQuery 和 CSS3 炫酷旋转木马布局特效。该特效使用 slick.js 来制作,支持移动触摸事件,可以在移动手机上使用。

使用方法

在页面中引入下面的文件。

也想出现在这里?联系我们
创客主机
  1. <link rel="stylesheet" type="text/css" href="assets/css/base.css" />
  2. <link rel="stylesheet" type="text/css" href="css/slick.min.css"/>
  3. <link rel="stylesheet" type="text/css" href="assets/css/demo.css" />
  4. <script src="assets/js/jquery-2.1.1.min.js"></script>
  5. <script src="js/slick.min.js"></script>
  6. <script src="assets/js/demo.js"></script>

HTML 结构

该 jQuery 和 CSS3 炫酷旋转木马布局的基本 HTML 结构如下。

  1. <header class="coidea-header">
  2.   <div class="coidea-links">
  3.     <a class="coidea-icon-back" href="" title="Back to the article">C</a>
  4.     <a class="coidea-icon-github" href="http://www.htmleaf.com/" target="_blank" title="This article on Github">G</a>
  5.   </div>
  6. </header>
  7. <div class="carousel">
  8.   <div class="slider slider-for">
  9.     <div class="item" style="background-image: url(assets/img/img-1.jpg)"></div>
  10.     <div class="item" style="background-image: url(assets/img/img-2.jpg)"></div>
  11.     <div class="item" style="background-image: url(assets/img/img-3.jpg)"></div>
  12.     <div class="item" style="background-image: url(assets/img/img-4.jpg)"></div>
  13.     <div class="item" style="background-image: url(assets/img/img-5.jpg)"></div>
  14.   </div>
  15.   <div class="slider slider-nav">
  16.     <div class="nav-item">
  17.       <div class="content" style="background-image: url(assets/img/img-1.jpg)">
  18.  
  19.         <div class="number">01</div>
  20.         <div class="body">
  21.           <div class="location">Mong Kok, Hong Kong</div>
  22.           <div class="headline">Photo by<br>Ryan Tang</div>
  23.           <a href="#0">
  24.             <div class="link">Read the Story</div>
  25.           </a>
  26.         </div>
  27.  
  28.       </div>
  29.     </div>
  30.     <div class="nav-item">
  31.       <div class="content" style="background-image: url(assets/img/img-2.jpg)">
  32.  
  33.         <div class="number">02</div>
  34.         <div class="body">
  35.           <div class="location">Shibuya, Japan</div>
  36.           <div class="headline">Photo by<br>Benjamin Hung</div>
  37.           <a href="#0">
  38.             <div class="link">Read the Story</div>
  39.           </a>
  40.         </div>
  41.  
  42.       </div>
  43.     </div>
  44.     ......
  45.   <div class="navigation">
  46.     <button class="forward"> > </button>
  47.     <button class="back"> < </button>
  48.   </div>
  49.  
  50. </div>

Coidea 网址:https://coidea.website/categories/challenges/motion-study-with-slick-slider/

CSS3 炫酷旋转木马布局 jQuery 特效

已有 531 人购买
查看演示升级 VIP立刻购买

演示地址 下载地址
收藏
(1)

发表回复

热销模板

Ashade - 作品展示摄影相册WordPress汉化主题
LensNews

本站承接 WordPress / PbootCMS / DedeCMS 等
系统建站、仿站、开发、定制等业务!