div+css实现积木层叠404页面悬浮变形动画效果代码

代码语言:html

所属分类:动画

代码描述:div+css实现积木层叠404页面悬浮变形动画效果代码

代码标签: div css 积木 层叠 404 页面 悬浮 变形 动画

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

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

<head>
   
<meta charset="UTF-8">

   
<style>
        body {
        margin: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(dimgray, black);
    }
   
    .error {
        display: flex;
        width: 33em;
        justify-content: space-between;
    }
   
    .error > * {
        width: 10em;
        height: 10em;
        position: relative;
    }
   
    .error span {
        position: absolute;
        box-sizing: border-box;
        filter: opacity(0.8);
        transition: 0.3s;
    }
   
    .four span:nth-child(1) {
        width: 20%;
        height: 80%;
        left: 10%;
        background-color: yellowgreen;
    }
   
    .four span:nth-child(2) {
        width: 100%;
        height: 20%;
        top: 50%;
        background-color: turquoise;
    }
   
    .four span:nth-child(3) {
        width: 20%;
        heigh.........完整代码请登录后点击上方下载按钮下载查看

网友评论0