js+css实现图片相册列表滚动视觉差异效果代码

代码语言:html

所属分类:视觉差异

代码描述:js+css实现图片相册列表滚动视觉差异效果代码

代码标签: 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-34ef7281bbd0?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1630359563592-c685967f83d7?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1630359555185-87e1a286cf6b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1630359649585-bdaa7433d10f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1629907710551-e592df0ab1f5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1629907730422-3303af15a34b?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1629907912711-9845e6e762a9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1615266508000-63ac219ac378?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1615266895738-11f1371cd7e5?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1615266508026-874e2c021320?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1615266895858-c243b139d5b9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1614633673914-0af3eae06970?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://images.unsplash.com/photo-1614633836648-68ddff9f7553?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=480&q=60" alt="">
    <img src="https://imag.........完整代码请登录后点击上方下载按钮下载查看

网友评论0