swiper实现团队人物介绍引用幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:swiper实现团队人物介绍引用幻灯片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/swiper-bundle.9.3.2.css">
<style>
@import url("https://fonts.googleapis.com/css2?family=Hammersmith+One&family=Poppins&display=swap");
body {
background-color: #d5e1ef;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
width: 100vw;
height: 100vh;
}
.container {
width: 100%;
height: 100%;
}
.card {
background-color: #f9fafe;
width: 550px;
height: 45%;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
position: relative;
padding: 30px 0 0 0;
transition: transform 400ms;
opacity: 0.5;
box-shadow: none;
}
.quote-icon {
position: absolute;
z-index: 0;
opacity: 0.05;
left: 3%;
top: 0;
}
.avatar {
width: 120px;
height: 120px;
border-radius: 150px;
border: 5px solid #f9fafe;
box-shadow: 0 0 50px #ccc;
position: absolute;
top: 0;
left: 50%;
transform: translate(-60px, -60px);
z-index: 1;
}
.header {
margin: 50px 0 0 0;
text-align: center;
z-index: 1;
}
.name {
font-family: "Hammersmith One", sans-serif;
text-transform: uppercase;
font-size: 22px;
margin: 0;
}
.title {
font-family: "Hammersmith One", sans-serif;
text-transform: uppercase;
font-size: 14px;
font-weight: 400;
margin: 5px 0 0 0;
padding: 0 5px;
color: #7ccdc5;
}
.quote-container {
margin: 0;
height: 100%;
z-index: 1;
padding: 15px 30px 30px 30px;
overflow: hidden;
}
.quote {
width: 100%;
height: 95%;
font-family: "Poppins", sans-serif;
font-size: 12px;
text-align: center;
color: #73808c;
margin: 0;
}
.swiper {
width: 100%;
height: 100%;
}
.swiper-slide {
display: flex !important;
justify-content: center;
align-items: center;
}
.swiper-slide-active {
z-index: 1;
}
.swiper-slide-active .card {
box-shadow: 0 8px 30px -7px #c9dff0;
opacity: 1;
transform: scale(1.5);
}
.swiper {
margin-left: auto;
margin-right: auto;
}
.swiper-button-next:focus,
.swiper-button-prev:focus {
outline: none;
}
@media (max-height: 400px) {
.header {
margin: 40px 0 0 0;
}
.name {
font-size: 12px;
}
.title {
font-size: 10px;
}
.quote-container {
padding: 5px 20px 20px 20px;
}
.quote-icon {
width: 75px;
height: 75px;
}
.avatar {
width: 100px;
height: 100px;
transform: translate(-50px, -50px);
}
}
</style>
</head>
<body>
<div class="container">
<div class="swiper swiperCarousel">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="card">
<img class="avatar" src="//repo.bfw.wiki/bfwrepo/image/64700adadc9a0.png?x-oss-process=image/auto-orient,1/resize,m_fill,w_200,h_200,/qual.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0