基于anime.js的动感圆形轮播图特效

当前位置:主页 > jQuery库 > 幻灯片和轮播图 > 基于anime.js的动感圆形轮播图特效
基于anime.js的动感圆形轮播图特效
分享:

    插件介绍

    这是一款基于anime.js的动感圆形轮播图特效。该轮播图特效在切换时,图片沿着圆形的路径进行轮播,并且各种图片之间的运动速度的差异,形成了视觉差特效。

    浏览器兼容性

    浏览器兼容性
    时间:10-29
    阅读:
简要教程

这是一款基于anime.js的动感圆形轮播图特效。该轮播图特效在切换时,图片沿着圆形的路径进行轮播,并且各种图片之间的运动速度的差异,形成了视觉差特效。

使用方法

在页面中引入base.css和demo.css文件和anime.min.js、demo.js文件。

<link href="css/base.css" rel="stylesheet">  
<link href="css/demo.css" rel="stylesheet">  
<script type="text/javascript" src="js/anime.min.js"></script>             
<script type="text/javascript" src="js/demo.js"></script>             
                
HTML

该轮播图的基本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, ...</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, .../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, ...</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>
                

该轮播图插件的官方网址为:https://coidea.website/categories/challenges/circular-slider-with-anime-js/