div+css实现三维盒子滚动放大图文切换效果代码
代码语言:html
所属分类:加载滚动
代码描述:div+css实现三维盒子滚动放大图文切换效果代码
代码标签: div css 三维 盒子 滚动 放大 图文 切换
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Open+Sans&display=swap");
*, *::before, *::after {
padding: 0;
margin: 0 auto;
box-sizing: border-box;
}
body {
font-family: "Open Sans", sans-serif;
background-color: #000;
color: #000;
height: 500vh;
}
h1, h2 {
width: 100%;
max-width: 40rem;
font-family: "Lobster", cursive;
}
h1.center, h2.center {
text-align: center;
}
img {
border-radius: 50%;
}
section {
position: fixed;
inset: 0;
perspective: 1200px;
-webkit-animation: section linear both;
animation: section linear both;
-webkit-animation-duration: auto;
animation-duration: auto;
animation-timeline: scroll(block root);
animation-range: var(--eventRange);
}
section *:not(:empty) {.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0