jquery slick实现运动模糊幻灯片切换效果代码

代码语言:html

所属分类:幻灯片

代码描述:jquery slick实现运动模糊幻灯片切换效果代码

代码标签: jquery slick 运动 模糊 幻灯片 切换

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">

    <style>
        * {
      outline: none;
      box-sizing: border-box;
    }
    
    body {
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
          -ms-flex-align: center;
              align-items: center;
      -webkit-box-pack: center;
          -ms-flex-pack: center;
              justify-content: center;
      height: 100vh;
      overflow: hidden;
      background-color: #FF3CAC;
      background-image: -webkit-linear-gradient(225deg, #FF3CAC 0%, #784BA0 50%, #2B86C5 100%);
      background-image: linear-gradient(225deg, #FF3CAC 0%, #784BA0 50%, #2B86C5 100%);
    }
    
    .slick-track {
      will-change: transform;
    }
    
    .slick-list {
      overflow: visible;
      will-change: transform;
    }
    
    .slick-slide {
      padding: 0 100px;
      width: 100vw;
      -webkit-filter: drop-shadow(0px 10px 40px rgba(0, 0, 0, 0.55));
              filter: drop-shadow(0px 10px 40px rgba(0, 0, 0, 0.55));
    }
    .slick-slide img {
      max-width: 100%;
      margin: 0 auto;
    }
    
    [type="button"] {
      position: fixed;
      top: 50%;
      z-index: 10;
      width: 70px;
      height: 70px;
      overflow: hidden;
      border: 0;
      text-indent: -9999px;
      background-color: black;
      background-position: center;
      background-repeat: no-repeat;
      cursor: pointer;
      opacity: 0.9;
      -webkit-transform: translateY(-50%);
              transform: translateY(-50%);
      -webkit-transition: all 0.25s ease;
      transition: all 0.25s ease;
    }
    [type="button"]:hover {
      opacity: 1;
    }
    [type="button"].slick-next {
      right: 0;
      background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjx0aXRsZT5jaGV2cm9uLXJpZ2h0PC90aXRsZT48cGF0aCBmaWxsPSIjZmZmZmZmIiBkPSJNMTUuNzA2IDExLjI5NGwtNi02Yy0wLjM4Ny0wLjM4Ny0xLjAyNS0wLjM4Ny0xLjQxMyAwcy0wLjM4NyAxLjAyNSAwIDEuNDEzbDUuMjk0IDUuMjk0LTUuMjk0IDUuMjk0Yy0wLjM4NyAwLjM4Ny0wLjM4NyAxLjAyNSAwIDEuNDEzIDAuMTk0IDAuMTk0IDAuNDUgMC4yOTQgMC43MDYgMC4yOTRzMC41MTMtMC4xIDAuNzA2LTAuMjk0bDYtNmMwLjM5NC0wLjM4NyAwLjM5NC0xLjAyNSAwLTEuNDEzeiI+PC9wYXRoPjwvc3ZnPg==);
    }
    [type="button"].slick-next:hover {
      right: -5px;
    }
    [type="button"].slick-prev {
      left: 0;
      background-image: url(data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjx0aXRsZT5jaGV2cm9uLWxlZnQ8L3RpdGxlPjxwYXRoIGZpbGw9IiNmZmZmZmYiIGQ9Ik0xMC40MTMgMTJsNS4yOTQtNS4yOTRjMC4zODctMC4zODcgMC4zODctMS4wMjUgMC0xLjQxM3MtMS4wMjUtMC4zODctMS40MTMgMGwtNiA2Yy0wLjM4NyAwLjM4Ny0wLjM4NyAxLjAyNSAwIDEuNDEzbDYgNmMwLjE5NCAwLjE5NCAwLjQ1IDAuMjk0IDAuNzA2IDAuMjk0czAuNTEzLTAuMSAwLjcwNi0wLjI5NGMwLjM4Ny0wLjM4NyAwLjM4Ny0xLjAyNSAwLTEuNDEzbC01LjI5NC01LjI5NHoiPjwvcGF0aD48L3N2Zz4=);
    }
    [type="button"].slick-prev:hover {
      left: -5px;
    }
    
    @-webkit-keyframes motion-blur {
      0% {
        -webkit-filter: url(#blur0);
                filter: url(#blur0);
        -webkit-transform: scale(1, 1);
                transform: scale(1, 1);
      }
      15% {
        -webkit-filter: url(#blur1);
                filter: url(#blur1);
        -webkit-transform: scale(1, 0.98);
                transform: scale(1, 0.98);
      }
      30% {
        -webkit-filter: url(#blur2);
                filter: url(#blur2);
        -webkit-transform: scale(1, 0.93);
                transform: scale(1, 0.93);
      }
      45% {
        -webkit-filter: url(#blur3);
                filter: url(#blur3);
        -webkit-transform: scale(1.1, 0.9);
                transform: scale(1.1, 0.9);
      }
      60% {
        -webkit-filter: url(#blur4);
                filter: url(#blur4);
        -webkit-transform: scale(1.2, 0.88);
                transform: scale(1.2, 0.88);
      }
      75%,
      100% {
        -webkit-filter: url(#blur5);
                filter: url(#blur5);
        -webkit-transform: scale(1.35, 0.85);
                transform: scale(1.35.........完整代码请登录后点击上方下载按钮下载查看

网友评论0