css实现照片墙相册随风摆动摇动动画效果代码

代码语言:html

所属分类:画廊相册

代码描述:css实现照片墙相册随风摆动摇动动画效果代码

代码标签: css 照片墙 相册 随风 摆动 摇动 动画

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

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

  
  
  
<style>
body {
  background: burlywood;
  overflow: hidden;
}

img {
  max-width: 100%;
}

.gallery {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 5rem;
}
.gallery__image {
  padding: 0.5rem 0.5rem 1.5rem;
  background: white;
  position: relative;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transform-origin: center -5rem;
}
.gallery__image::before {
  content: "";
  display: block;
  height: 10rem;
  width: 2px;
  background: saddlebrown;
  position: absolute;
  bottom: 100%;
  left: 50%;
}
.gallery__image:nth-child(1) {
  animation: 5s infinite bounce;
  animation-name: image1;
  transform: rotate(-10deg);
}
.gallery__image:nth-child(2) {
  animation: 4.5s infinite bounce;
  animation-name: image2;
  transform: rotate(8deg);
}
.gallery__image:nt.........完整代码请登录后点击上方下载按钮下载查看

网友评论0