原生js+css实现团队成员介绍图片立体堆叠图文幻灯片效果代码

代码语言:html

所属分类:幻灯片

代码描述:原生js+css实现团队成员介绍图片立体堆叠图文幻灯片效果代码

代码标签: 原生 js css 团队 成员 介绍 图片 立体 堆叠 图文 幻灯片

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

<!DOCTYPE html>
<html lang="en" >
<head>
 
<meta charset="UTF-8">
 
<style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #f5f5f5;
        overflow: hidden;
}

.about-title {
        font-size: 7.5rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: -0.02em;
        position: absolute;
        top: 45px;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
        white-space: nowrap;
        font-family: "Arial Black", "Arial Bold", Arial, sans-serif;
        background: linear-gradient(
                to bottom,
                rgb(8 42 123 / 35%) 30%,
                rgb(255 255 255 / 0%) 76%
        );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
}

.carousel-container {
        width: 100%;
        max-width: 1200px;
        height: 450px;
        position: relative;
        perspective: 1000px;
        margin-top: 80px;
}

.carousel-track {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card {
        position: absolute;
        width: 280px;
        height: 380px;
        background: white;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        cursor: pointer;
}

.card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card.center {
        z-index: 10;
        transform: scale(1.1) translateZ(0);
}

.card.center img {
        filter: none;
}

.card.left-2 {
        z-index: 1.........完整代码请登录后点击上方下载按钮下载查看

网友评论0