css实现垂直滚动相册画廊效果代码
代码语言:html
所属分类:画廊相册
代码描述:css实现垂直滚动相册画廊效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
display: flex;
justify-content: center;
align-items: center;
margin: 0;
width: 100vw;
height: 100vh;
font-family: 'Poppins', sans-serif;
overflow: hidden;
perspective: clamp(400px, 100vw, 1000px);
}
body::before,
body::after {
content: "";
position: fixed;
z-index: 10;
left: 0;
right: 0;
height: 30vh;
}
body::before {
top: 0;
background: linear-gradient(5deg, rgba(0,0,0,0) 30%, #fff);
}
body::after {
bottom: 0;
background: linear-gradient(-5deg, #fff, rgba(0,0,0,0) 70%);
}
.gallery {
display: flex;
gap: 1vw;
max-width: 1.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0