css实现Cinemagraph静态照片中神奇的树枝吹动效果代码

代码语言:html

所属分类:动画

代码描述:css实现Cinemagraph静态照片中神奇的树枝吹动效果代码

代码标签: 静态 片中 神奇 树枝 吹动 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
  
  
<style>
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background-image: url(//repo.bfw.wiki/bfwrepo/image/601fc3ebf396d.png);
  background-size: cover;
}
body::before, body::after {
  content: "";
  position: absolute;
  background-repeat: no-repeat;
}
body::before {
  top: -10vmin;
  right: -10vmin;
  bottom: -10vmin;
  left: -10vmin;
  background-image: url(//repo.bfw.wiki/bfwrepo/image/601f.........完整代码请登录后点击上方下载按钮下载查看

网友评论0