swiper实现卡片悬浮切换幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:swiper实现卡片悬浮切换幻灯片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/swiper.5.3.8.css"> <style> .img_swiper{ width: 800px; margin: 0 auto; position: relative; } .img{ width: 100%; height: 100%; } .img_swiper .swiper-button-prev{ width: 40px; height: 40px; /* background-image: url(//repo.bfw.wiki/bfwrepo/image/5f7ab7a3a8387.png); background-size: cover; */ /* left: -80px; */ } .img_swiper .swiper-button-next{ width: 40px; height: 40px; /* background-image: url(//repo.bfw.wiki/bfwrepo/image/5f7ab7cfd3599.png); background-size: cover; */ /* right: -80px; */ } .img_swiper .swiper-button-prev.swiper-button-disabled{ background-image: url(//repo.bfw.wiki/bfwrepo/image/5f7ab7a3a8387.png); background-color: #FFFFFF; } .img_swiper .swiper-button-next.swiper-button-disabled{ background-image: url(//repo.bfw.wiki/bfwrepo/image/5f7ab7cfd3599.png); background-color: #FFFFFF; } .img_swiper .swiper-slide{ width: 440px; } .swiper_slide_img{ /* height: 440px; */ perspective: 300px; -webkit-perspective: 500; /* position: absolute; */ margin-left: -240px; position: relative; } .swiper_slide_img:first-child{ margin-left: 0; } .swiper_slide_img>img{ width: 360px; height: 500px; transform: rotateY(35deg) scale(0.7); transition: 1s; border-radius: 20px; cursor: url('//repo.bfw.wiki/bfwrepo/image/603857094e4e4.png'), default; } .swiper_slide_img:hover{ z-index: 1000; } .swiper_slide_img:h.........完整代码请登录后点击上方下载按钮下载查看
网友评论0