原生js实现折叠堆叠纸张动画效果代码

代码语言:html

所属分类:动画

代码描述:原生js实现折叠堆叠纸张动画效果代码

代码标签: 折叠 堆叠 纸张 动画 效果

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


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

<head>

  <meta charset="UTF-8">

  
  
  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Asul',rel='stylesheet'>
  
<style>
html, body {
  margin: 0;
}

body {
  font-family: "Asul";
  font-size: 22px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: inline-block;
  background: #e9dfc4;
  background: linear-gradient(left, #e9dfc4 0%, #e9dfc4 1%, #ede3c8 2%, #ede3c8 24%, #ebddc3 25%, #e9dfc4 48%, #ebddc3 49%, #e6d8bd 52%, #e6d8bd 53%, #e9dbc0 54%, #e6d8bd 55%, #e6d8bd 56%, #e9dbc0 57%, #e6d8bd 58%, #e6d8bd 73%, #e9dbc0 74%, #e9dbc0 98%, #ebddc3 100%);
  background-size: 120px;
  background-repeat: repeat;
}

img {
  max-width: 100%;
}

mark {
  background-color: #FFFF00;
  border: 1px dashed #FFFF00;
}

.instruction {
  transform: rotate(90deg) translateX(-50%);
  transform-origin: left top 0;
  transform-origin: 0 0;
  position: absolute;
  left: 2.05em;
  text-align: center;
  letter-spacing: 1.5px;
  word-spacing: 1px;
  margin: 0;
  top: 50%;
  color: rgba(0, 0, 0, 0.7);
  background-color: rgba(255, 255, 255, 0.5);
  width: 200vw;
  padding: 1em;
  line-height: 0;
  display: inline-block;
}

button {
  border: none;
  background-color: rgba(80, 11, 6, 0.4);
  color: white;
  pa.........完整代码请登录后点击上方下载按钮下载查看

网友评论0