Toggle navigation
在线编辑器
在线代码
文本比较
jQuery下载
前端库
在线手册
登录/注册
下载代码
html
css
js
分享到微信朋友圈
X
html
Slide 1
Lorem ipsum dolor sit amet
Slide 2
Lorem ipsum dolor sit amet
Slide 3
Lorem ipsum dolor sit amet
Slide 4
Lorem ipsum dolor sit amet
Slide 5
Lorem ipsum dolor sit amet
Slide 6
Lorem ipsum dolor sit amet
Slide 1
Slide 2
Slide 3
Slide 4
Slide 5
Slide 6
css
@import url("https://unpkg.com/swiper/swiper-bundle.min.css"); html, body { position: relative; height: 100%; } body { background: #000; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px; color: #000; margin: 0; padding: 0; } .swiper-container { width: 100%; margin-left: auto; margin-right: auto; } @media (min-width: 480px) { .swiper-container { min-height: 320px; } } .swiper-container-wrapper { display: flex; flex-flow: column nowrap; height: 100vh; width: 100vw; } @media (min-width: 480px) { .swiper-container-wrapper { flex-flow: row nowrap; } } .swiper-button-next, .swiper-button-prev { color: #000; } .swiper-slide-duplicate, .swiper-slide { text-align: center; background-size: cover; background-position: center; background-color: #fff; /* Center slide text vertically */ display: flex; flex-flow: column nowrap; justify-content: center; align-items: center; /* Slide content */ } .swiper-slide-duplicate .description, .swiper-slide-duplicate .title, .swiper-slide .description, .swiper-slide .title { display: block; opacity: 0; transition: 0.5s ease 0.5s; } .swiper-slide-duplicate-active .description, .swiper-slide-duplicate-active .title, .swiper-slide-active .description, .swiper-slide-active .title { opacity: 1; } .swiper-slide-duplicate-active .title, .swiper-slide-active .title { margin-bottom: 0.5rem; font-size: 24px; color: #000; transition: opacity 0.5s ease 0.5s; } .swiper-slide-duplicate-active .description, .swiper-slide-active .description { font-size: 16px; color: #777; transition: opacity 0.5s ease 0.75s; } .gallery-top { width: 100%; height: 75vh; } @media (min-width: 480px) { .gallery-top { width: 80%; height: 100vh; margin-right: 10px; } } .gallery-thumbs { width: 100%; height: 25vh; padding-top: 10px; } @media (min-width: 480px) { .gallery-thumbs { width: 20%; height: 100vh; padding: 0; } } .gallery-thumbs .swiper-wrapper { flex-direction: row; } @media (min-width: 480px) { .gallery-thumbs .swiper-wrapper { flex-direction: column; } } .gallery-thumbs .swiper-slide { width: 25%; flex-flow: row nowrap; height: 100%; opacity: 0.75; cursor: pointer; } @media (min-width: 480px) { .gallery-thumbs .swiper-slide { flex-flow: column nowrap; width: 100%; } } .gallery-thumbs .swiper-slide-thumb-active { opacity: 1; }
JavaScript
$(document).ready(function () { var galleryThumbs = new Swiper(".gallery-thumbs", { direction: "horizontal", spaceBetween: 10, slidesPerView: 3, freeMode: false, watchSlidesVisibility: true, watchSlidesProgress: true, breakpoints: { 480: { direction: "vertical", slidesPerView: 3, } } }); var galleryTop = new Swiper(".gallery-top", { direction: "horizontal", spaceBetween: 10, navigation: { nextEl: ".swiper-button-next", prevEl: ".swiper-button-prev" }, thumbs: { swiper: galleryThumbs } }); });
粒子
时间
文字
hover
canvas
3d
游戏
音乐
火焰
水波
轮播图
鼠标跟随
动画
css
加载动画
导航
菜单
按钮
滑块
tab
弹出层
统计图
svg
×
Close
在线代码下载提示
开通在线代码永久免费下载,需支付20jQ币
开通后,在线代码模块中所有代码可终身免费下!
您已开通在线代码永久免费下载,关闭提示框后,点下载代码可直接下载!
您已经开通过在线代码永久免费下载
对不起,您的jQ币不足!可通过发布资源 或
直接充值获取jQ币
取消
开通下载
<!doctype html> <html> <head> <meta charset="utf-8"> <title> 响应式垂直缩略图、水平缩略图-jq22.com</title> <script src="https://www.jq22.com/jquery/jquery-1.10.2.js"></script> <style>
</style> </head> <body>
<script>
</script>
</body> </html>
2012-2021 jQuery插件库版权所有
jquery插件
|
jq22工具库
|
网页技术
|
广告合作
|
在线反馈
|
版权声明
沪ICP备13043785号-1
浙公网安备 33041102000314号