stackedCards实现堆叠卡片式轮播图幻灯片效果代码

代码语言:html

所属分类:幻灯片

代码描述:stackedCards实现堆叠卡片式轮播图幻灯片效果代码

代码标签: 卡片式 轮播 幻灯片 效果

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

<!DOCTYPE html>
<html lang="zh">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js堆叠卡片轮播图插件stackedCards</title>
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/stackedCards.css">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/highlight.min.css">
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/highlight.11.js"></script>
    <script>
        hljs.initHighlightingOnLoad();
    </script>
    <style>
        *, *:before, *:after {
            box-sizing: border-box;
        }
        body {
            color: #444;
        }
        html {
            height: 100%;
        }
        body {
            font-family: "Roboto", sans-serif;
            width: 100%;
            height: 100%;
            min-height: 100%;
            margin: 0px;
            padding: 0px;
            background-color: #eee;
            background-color: #fff;
        }
        .stacked-cards h2 {
            text-align: center;
            position: relative;
            top: -20px;
        }
        .intro {
            max-width: 600px;
            margin: 20px auto;
            text-align: center;
        }
        .container-fuild {
            max-width: 80%;
            margin: 0 auto;
        }
        .container-fixed {
            max-width: 767px;
            margin: 0 auto;
        }
        .divider {
            max-width: 500px;
            margin: 25px auto;
            background-color: #ccc;
            height: 2px;
            width: 100%;
        }
        .stacked-cards {
            padding-top: 40px;
            padding-bottom: 15px;
        }
        .stacked-cards-fanOut {
            padding-bottom: 40px;
        }
        .stacked-cards-fanOut li img {
            max-height: 200px;
        }
        .stacked-cards li {
            height: 250px;
        }
        
        @media (max-width: 767px) {
        .stacked-cards li {
            height: 180px;
        }
        }
        .stacked-cards li {
            background-color: #00bcd4;
        }
        .stacked-cards li:nth-child(n) {
            background-color: #3599db;
        }
        .stacked-cards li:nth-child(2n) {
            background-color: #e61b77;
        }
        .stacked-cards li:nth-child(3n) {
            background-color: #00bcd4;
        }
        .stacked-cards li:nth-child(4n) {
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0