div+css实现磨砂透明模糊交互倾斜卡片效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现磨砂透明模糊交互倾斜卡片效果代码

代码标签: div css 磨砂 透明 模糊 交互 倾斜 卡片

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

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

<head>

 
 
 
<style>
* {
  box-sizing: border-box;
}
body {
  position: relative;
  margin: 0;
  height: 100vh;
  background: url(//repo.bfw.wiki/bfwrepo/image/649f88bb7ae2d.png);
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  perspective: 1000px;
}

div {
  position: absolute;
  width: 40vw;
  height: 60vh;
  inset: 0;
  margin: auto;
  border-radius: 40px;
  box-shadow: 0 2px 5px 1px rgba(0,0,0,0.15), 0 -10px 20px -5px rgba(0,0,0,0.3) inset, 1px 2px 1px rgba(255,255,255,0.5) inset, 0 150px 100px -80px rgba(0,0,0,0.4);
  animation: reveal 4s linear(
    0, 0.001, 0.005 1.1%, 0.02, 0.045 3.5%, 0.081 5%, 0.16 7.5%, 0.365 13.5%,
    0.464 16.5%, 0.559, 0.64, 0.71 26.2%, 0.742, 0.771, 0.797, 0.822, 0.844,
    0.865 3.........完整代码请登录后点击上方下载按钮下载查看

网友评论0