手机翻转导航效果

代码语言:html

所属分类:菜单导航

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

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

    <style>
@import url("https://fonts.googleapis.com/css?family=Abril+Fatface|Roboto:400,500&display=swap");
        html {
            box-sizing: border-box;
        }

        *,
        *:before,
        *:after {
            box-sizing: inherit;
        }

        body,
        html {
            height: 100%;
            min-height: 100%;
        }

        body {
            background: #e0e2ef;
            font-size: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-family: "Roboto", sans-serif;
            line-height: 1.45;
        }

        h1 {
            font-family: "Abril Fatface", cursive;
            font-size: 5rem;
        }

        h2 {
            font-size: 1rem;
        }

        .phone {
            background: black;
            border-radius: 40px;
            border: 10px solid #21262b;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
            height: 600px;
            overflow: hidden;
            -webkit-perspective: 600px;
            perspective: 600px;
            position: relative;
            width: 310px;
        }
        .phone::before {
            .........完整代码请登录后点击上方下载按钮下载查看

网友评论0