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) { background-color: #f4b251; } .stacked-cards li:nth-child(5n) { background-color: #8e4497; } .source { margin: 25px auto; } .header { margin: 0px auto; padding: 25px 5px; background-color: #fff; } .header img { display: block; margin: 0 auto; max-width: 300px; height: auto; } </style> </head> <body> <div style="text-align: center"> <h3>js堆叠卡片轮播图插件stackedCards</h3> <p>每张卡片与其他卡片交换,让您的内容框看起来像堆叠的卡片</p> </div> <div id="wrap"> <div class="container-fixed stacked-cards stacked-cards-slide"> <h2>Slide</h2> <ul> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> <li> </li> </ul> </div> <div class="container-fixed source"> <pre> <code class=&quo.........完整代码请登录后点击上方下载按钮下载查看
网友评论0