gasp实现生日蛋糕生日快乐生日蜡烛动画效果

代码语言:html

所属分类:动画

代码描述:gasp实现生日蛋糕生日快乐生日蜡烛动画效果

代码标签: 生日 快乐 生日 蜡烛 动画 效果

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

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

    <style>
@import url("https://fonts.googleapis.com/css2?family=Cookie&family=Rouge+Script&display=swap");
        *, *:before, *:after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .svg {
            position: absolute;
            width: 0;
            height: 0;
        }

        .wrapper, .plate, .candle-container {
            display: grid;
            place-items: center;
        }

        .wrapper {
            position: relative;
            height: 100vh;
            min-height: 600px;
            background: linear-gradient(totop,#eee, transparent);
        }

        .greeting {
            font-family: 'Rouge Script', cursive;
            font-size: 4rem;
            color: #444;
            transform: scale(0);
        }

        .message {
            font-family: 'Cookie', cursive;
            font-size: 2.5rem;
            color: #777;
        }

        .plate {
            position: relative;
            width: 250px;
            height: 75px;
            background: #f1f1f1;
            margin-top: 0;
            border-radius: 50%;
            box-shadow: 0px 3px 5px 0px #aaa;
        }

        .cake-wrap {
            position: absolute;
            bottom: 50%;
        }

        .cake-base {
            position: relative;
            width: 200px;
            height: 50px;
            background: #c5a5c0;
        }
        .cake-base .base-front {
            position: absolute;
            width: 100%;
            height: 100%;
            background: inherit;
        }
        .cake-base .base-front:after {
            content: '';
            position: absolute;
            left: 0;
            top: 100%;
            widt.........完整代码请登录后点击上方下载按钮下载查看

网友评论0