gsap实现炫酷全屏图文滚动式幻灯片代码

代码语言:html

所属分类:幻灯片

代码描述:gsap实现炫酷全屏图文滚动式幻灯片代码

代码标签: gsap 炫酷 全屏 图文 滚动式 幻灯片 代码

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

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
  
<style>
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: "Instrument Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.slider {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: none;
}

.slider__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  flex-shrink: 0;
}

.slider__menu {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: none;
  cursor: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.3s ease;
}

.slider__menu:hover {
  border-color: rgba(255, 255, 255, 0.8);
}

.slider__menu span {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

.slider__label {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  display: none;
}

.slider__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 32px 40px;
  min-height: 0;
  position: relative;
}

.slider__left {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 4;
}

.slider__title {
  font-size: clamp(64px, 15vw, 200px);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  lett.........完整代码请登录后点击上方下载按钮下载查看

网友评论0