css布局实现一个带口罩的表情效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现一个带口罩的表情效果代码

代码标签: 一个 口罩 表情 效果

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
        body{
            background-color: #e5e1f5;
            padding: 0;
            margin: 0;
            height: 100vh;
            display: grid;
            place-items: center;
        }
        .emoji{
            height: 300px;
            width: 300px;
            background-image: radial-gradient(rgb(254, 193, 11) 50%, rgba(250,221,178));
            border-radius: 50% ;
            position: relative;
            overflow: hidden;
            box-shadow: 30px 30px 35px rgba(0,0,0,0.28);
        }
        .emoji::before,
        .emoji::after{
            content: "";
            height: 45px;
            width: 32px;
            background-color: brown;
            position: absolute;
            box-shadow: -3px brown;
            border-radius: 50%;
            top: 90px;
        }
        .emoji::before{
            left: 80px;
        }
        .emoji::after{
            right: 80px;
        }
        .mask{
            height:120px;
            width: 220px;
            background-color: white;
            position: absolute;
            marg.........完整代码请登录后点击上方下载按钮下载查看

网友评论0