一个div和css实现信封动画效果

代码语言:html

所属分类:布局界面

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
  @charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed&display=swap");
body {
  display: flex;
  margin-top: 50px;
  justify-content: center;
  background: #f59b9b;
}

.letter {
  margin-top: 100px;
  position: relative;
  background: transparent;
  height: 0px;
  width: 0px;
  border-top: 80px solid transparent;
  border-bottom: 50px solid #7CC0C8;
  border-left: 100px solid #95DAE2;
  border-right: 100px solid #9BDEE6;
}
.letter:before {
  z-index: -2;
  content: '';
  position: absolute;
  height: 140px;
  width: 140px;
  background: #CCE3E6;
  transform: rotate(45d.........完整代码请登录后点击上方下载按钮下载查看

网友评论0