css如何制作全屏幻灯片切换动画

发布时间:2022-02-28 09:51:41 作者:小新
来源:亿速云 阅读:179

这篇文章主要介绍了css如何制作全屏幻灯片切换动画,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

<!DOCTYPE html>

<html >

<head>

  <meta charset="UTF-8">

 

  <title>全屏幻灯片切换动画</title>

         <meta name="keywords" content="全屏幻灯片切换动画" />

         <meta name="description" content="全屏幻灯片切换动画" />

  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">

 

 

 

      <link rel="stylesheet" href="css/style.css">

 

 

</head>

 

<body>

  <div class="slider-container">

  <div class="slider-control left inactive"></div>

  <div class="slider-control right"></div>

  <ul class="slider-pagi"></ul>

  <div class="slider">

    <div class="slide slide-0 active">

      <div class="slide__bg"></div>

      <div class="slide__content">

        <svg class="slide__overlay" viewBox="0 0 720 405" preserveAspectRatio="xMaxYMax slice">

          <path class="slide__overlay-path" d="M0,0 150,0 500,405 0,405" />

        </svg>

        <div class="slide__text">

          <h3 class="slide__text-heading">Project name 1</h3>

          <p class="slide__text-desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia.</p>

          <a class="slide__text-link">Project link</a>

        </div>

      </div>

    </div>

    <div class="slide slide-1 ">

      <div class="slide__bg"></div>

      <div class="slide__content">

        <svg class="slide__overlay" viewBox="0 0 720 405" preserveAspectRatio="xMaxYMax slice">

          <path class="slide__overlay-path" d="M0,0 150,0 500,405 0,405" />

        </svg>

        <div class="slide__text">

          <h3 class="slide__text-heading">Project name 2</h3>

          <p class="slide__text-desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia.</p>

          <a class="slide__text-link">Project link</a>

        </div>

      </div>

    </div>

    <div class="slide slide-2">

      <div class="slide__bg"></div>

      <div class="slide__content">

        <svg class="slide__overlay" viewBox="0 0 720 405" preserveAspectRatio="xMaxYMax slice">

          <path class="slide__overlay-path" d="M0,0 150,0 500,405 0,405" />

        </svg>

        <div class="slide__text">

          <h3 class="slide__text-heading">Project name 3</h3>

          <p class="slide__text-desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia.</p>

          <a class="slide__text-link">Project link</a>

        </div>

      </div>

    </div>

    <div class="slide slide-3">

      <div class="slide__bg"></div>

      <div class="slide__content">

        <svg class="slide__overlay" viewBox="0 0 720 405" preserveAspectRatio="xMaxYMax slice">

          <path class="slide__overlay-path" d="M0,0 150,0 500,405 0,405" />

        </svg>

        <div class="slide__text">

          <h3 class="slide__text-heading">Project name 4</h3>

          <p class="slide__text-desc">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Distinctio veniam minus illo debitis nihil animi facere, doloremque voluptate tempore quia.</p>

          <a class="slide__text-link">Project link</a>

        </div>

      </div>

    </div>

  </div>

</div>

  <script src='http://www.5iweb.com.cn/statics/js/jquery.1.7.1.min.js'></script>

 

    <script src="js/index.js"></script>

 

</body>

</html>

感谢你能够认真阅读完这篇文章,希望小编分享的“css如何制作全屏幻灯片切换动画”这篇文章对大家有帮助,同时也希望大家多多支持亿速云,关注亿速云行业资讯频道,更多相关知识等着你来学习!

推荐阅读:
  1. JQuery幻灯片-视觉效果爆棚的全屏滚动相册
  2. CSS进阶之纯CSS幻灯片

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

css

上一篇:CSS3如何实现loading特效

下一篇:HTML网页制作基础是什么

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》