css实现卡片纸张从文件夹中抽出动画效果代码

代码语言:html

所属分类:动画

代码描述:css实现卡片纸张从文件夹中抽出动画效果代码

代码标签: 纸张 文件夹 抽出 动画 效果

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

<html>
<head>
    <style>
@import 'https://fonts.googleapis.com/css?family=Roboto:100,300,400,700';
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #37354c;
}

body .mountains {
  width: 100vw;
  height: 100vh;
  background-color: #37354c;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: absolute;
}

body .mountains::before {
  width: 100%;
  height: 20em;
  background-color: rgba(255, 255, 255, 0.06);
  display: block;
  position: absolute;
  content: "";
  -webkit-clip-path: polygon(26% 49%, 50% 76%, 63% 43%, 100% 57%, 100% 100%, 0 100%, 0 67%, 4% 60%, 13% 76%);
  clip-path: polygon(26% 49%, 50% 76%, 63% 43%, 100% 57%, 100% 100%, 0 100%, 0 67%, 4% 60%, 13% 76%);
}

body .mountains::after {
  width: 100%;
  height: 20em;
  background-color: rgba(255, 255, 255, 0.06);
  display: block;
  position: absolute;
  content: "";
  -webkit-clip-path: polygon(32% 73%, 50% 57%, 68% 72%, 100% 45%, 100% 100%, 0 100%, 0 81%, 13% 68%);
  clip-path: polygon(32% 73%, 50% 57%, 68% 72%, 100% 45%, 100% 100%, 0 100%, 0 81%, 13% 68%);
}

body .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: absolute;
}

body .container .case {
  z-index: 2;
  display: flex;
  background-color: rgba(78, 170, 127, 0.95);
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  width: 15em;
  height: 20em;
  border-radius: 7px;
  -webkit-clip-path: polygon(100% 55%, 89% 61%, 89% 83%, 100% 90%, 100% 100%, 0 100%, 0 67%, 0 0, 100% 0);
  clip-path: polygon(100% 55%, 89% 61%, 89% 83%, 100% 90%, 100% 100%, 0 100%, 0 67%, 0 0, 100% 0);
  box-shadow: 0px 2px 10px rgba(0, 0, 0, .3);
}

body .container .case .ion {
  color: white;
  font-size: 6em;
}

body .container .case .case-txt {
  text-transform: uppercase;
  font-weight: 400;
  color: white;
  font-size: 1.5em;
  padding-left: 45px;
  padding-right: 45px;
  text-align: center;
}

body .container .back {
  display: flex;
  background-color: #27915f;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  widt.........完整代码请登录后点击上方下载按钮下载查看

网友评论0