js+css实现图片相册列表滚动视觉差异效果代码
代码语言:html
所属分类:视觉差异
代码描述:js+css实现图片相册列表滚动视觉差异效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.css">
<style>
body {
font-family: sans-serif;
-webkit-text-size-adjust: 100%;
font-variant-ligatures: none;
text-rendering: optimizeLegibility;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
text-shadow: rgba(0, 0, 0, 0.01) 0 0 1px;
background-color: #191f22;
}
body::after {
content: "";
background-image: radial-gradient(#fff 2%, #fff0 10.2%);
background-position: 0 0;
background-repeat: repeat;
background-size: 10px 10px;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-attachment: fixed;
z-index: -1;
}
img {
max-width: 100%;
height: auto;
}
.scroll-perspective {
-moz-column-count: 3;
column-count: 3;
-moz-column-gap: 50px;
column-gap: 50px;
font-size: 0;
perspective: 50rem;
padding: 40px 40px 0;
max-width: 1080px;
margin: auto;
}
.scroll-perspective img {
margin-bottom: 50px;
border-radius: 6px;
}
</style>
</head>
<body >
<div class="scroll-perspective" id="scroll-perspective">
<img src="https://images.unsplash.com/photo-1630359559738-.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0