css实现一个咖啡机效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现一个咖啡机效果代码

代码标签: css 咖啡机

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
        body{
            padding: 0;
            margin: 0;
            background-color: white;
        }
        .container{
            height: 350px;
            width: 350px;
            position: absolute;
            transform: translate(-50%, -50%);
            left: 50%;
            top: 50%;
        }
        .upper{
            height: 0;
            width: 180px;
            border-top: 70px solid #735123;
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            position: relative;
            margin: 55px auto;
            box-sizing: border-box;
        }
        .upper::after{
            content: "";
            position: absolute;
            background-color: #3b240e;
            height: 5px;
            width: 185px;
            left: -12.5px;
            top: -70px;
        }
        .timer{
            content: "";
            position: absolute;
            height: 65px;
            width: 60px;
            background-color: #e06526;
            margin: auto;
            left: 0;
            right: 0;
            top: -65px;
            display: grid;
            place-items: center;
        }
        .timer::before{
            content: "";
            position: absolute;
            height: 32px;
            width: 32px;
            background-color: white;
            border-radius: 50%;
        }
        .timer::after{
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0