• css动效库animate.css和swiper.js


    animate.css

    https://daneden.github.io/animate.css/

    学习的文档:http://www.jq22.com/jquery-info819

    腾讯团队的JXanimate

    http://alloyteam.github.io/JXAnimate/index.html

    swiper.js中的hashnav这个属性没看懂。

     swiper.js 的学习笔记。

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
        <title>Document</title>
        <link href="https://cdn.bootcss.com/animate.css/3.5.2/animate.css" rel="stylesheet">
        <style>
            *{
                margin:0;
                padding:0;
            }
            html,body{
                100%;
                height: 100%;
                overflow: hidden;
            }
            .ab{
                position: absolute;
            }
            img{
                 100%;
            }
            .swiper-container {
                 400px;
                height: 600px;
                margin:0 auto;
            } 
            .swiper-container .swiper-wrapper{
                 100%;
            } 
            .swiper-container .swiper-wrapper .swiper-slide{
                overflow: hidden;
            }
        </style>
        <link href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css" rel="stylesheet">
        <link href="https://cdn.bootcss.com/animate.css/3.5.2/animate.min.css" rel="stylesheet">
        <script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
        <script src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.js"></script>
    </head>
    <body>
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide slide1" style="background:#FF7F24">
                    <p class="ani infinite" swiper-animate-effect="fadeInUp" swiper-animate-duration="1.2s" swiper-animate-delay="0.3s">
                        <img src="./down.jpg" style=" 30px">
                    </p>
                </div>
                <div class="swiper-slide slide2" style="background: #FF6A6A">
                    <div class="swiper-container2">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide slide2_1"></div>
                            <div class="swiper-slide slide2_1"></div>
                        </div>
                    </div>
                </div>
                <div class="swiper-slide slide3" style="background: #FFE7BA">
                    <div class="swiper-container3">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide slide2_1"></div>
                            <div class="swiper-slide slide2_1"></div>
                        </div>
                    </div>
                </div>
                <div class="swiper-slide slide4" style="background: #FF34B3">
                    <div class="swiper-container4">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide slide4_1"></div>
                            <div class="swiper-slide slide4_1"></div>
                        </div>
                    </div>
                </div>
                <div class="swiper-slide slide5" style="background: #EEEEE0">
                    <div class="swiper-container5">
                        <div class="swiper-wrapper">
                            <div class="swiper-slide slide5_1"></div>
                            <div class="swiper-slide slide5_1"></div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- 如果需要分页器 -->
            <div class="swiper-pagination"></div>
            
            <!-- 如果需要导航按钮 -->
            <div class="swiper-button-prev"></div>
            <div class="swiper-button-next"></div>
            
            <!-- 如果需要滚动条 -->
            <div class="swiper-scrollbar"></div>
        </div>
        <script>
            var mySwiper = new Swiper ('.swiper-container', {
                direction: 'vertical',
                loop: true,
                // 如果需要分页器
                pagination: '.swiper-pagination',
                
                // 如果需要前进后退按钮
                nextButton: '.swiper-button-next',
                prevButton: '.swiper-button-prev',
                
                // 如果需要滚动条
                scrollbar: '.swiper-scrollbar',
                hashnav:true
          })     
        </script>
    </body>
    </html>
    

      

  • 相关阅读:
    SharePoint
    北京的雨
    SharePoint2003安装问题解答
    SharePoint安装时“Service Unavailable”的解决办法
    SharePoint安装程序常见问题解答和故障排查指南,做个参考:)
    银弹的看法
    vue组件注册方式
    vue中template和render的区别
    前端需要注意的SEO
    公众号中H5页面分享给好友或朋友圈自定义图片或文字
  • 原文地址:https://www.cnblogs.com/coding4/p/6892787.html
Copyright © 2020-2023  润新知