gsap幻灯片翻转效果

代码语言:html

所属分类:幻灯片

代码描述:gsap幻灯片翻转效果

代码标签: 效果

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


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<title>CodePen - slider-gsap</title>
<link href="https://fonts.googleapis.com/css2?family=Sriracha&display=swap" rel="stylesheet">

<style>
body {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.container {
  width: 400px;
  height: 267px;
  margin: 16px;
  box-shadow: 0 0 40px 30px rgba(0,0,0, .2);
}

img {
  max-width: 100%;
}

.image {
  position: absolute;
  transform-origin: 100% 100%;
}
.text {
  position: absolute;
  top: 10%;
  right: -15%;
  color: black;
  background-color: white;.........完整代码请登录后点击上方下载按钮下载查看

网友评论0