瓶中玫瑰动画

代码语言:html

所属分类:动画

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

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

    <title> Beauty and the Beast&#39;s Enchanted Rose</title>
    <style>
        body {
            height: 100%;
            width: 100%;
            background: #080f1a;
            overflow: hidden;
        }

        .container {
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .glass {
            height: 350px;
            width: 200px;
            background: #122139;
            border-radius: 300px 300px 0px 0px;
        }
        .glass:before {
            content: "";
            height: 10px;
            width: 10px;
            transform-origin: center;
            border: 10px solid #122139;
            border-radius: 100%;
            position: absolute;
            left: 87px;
            top: -25px;
        }
        .glass:after {
            content: "";
            position: absolute;
            height: 15px;
            width: 250px;
            background: #a52a2a;
            top: 100%;
            left: -13%;
        }

        .shine {
            width: 12px;
            height: 140px;
            background: white;
            opacity: 0.2;
            position: absolute;
            left: 85%;
            top: 80px;
            border-radius: 100px;
            z-index: 10;
        }
        .shine:before {
            content: "";
            width: 12px;
            height: 20px;
            position: absolute;
            background: white;
            top: 160px;
            border-radius: 100px;
        }

        .petals > div {
            position: absolute;
            background: #d52d58;
          .........完整代码请登录后点击上方下载按钮下载查看

网友评论0