svg+css实现小熊献爱心爱情表白卖萌动画效果代码

代码语言:html

所属分类:表白

代码描述:svg+css实现小熊献爱心爱情表白卖萌动画效果代码

代码标签: 小熊 表白 爱心 卖萌

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">





    <style>
        body {
            padding: 0;
            margin: 0;
            background-color: #90ffff;
        }
        .container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
        }
        .drawing {
            display: none;
            width: calc(100% - 32px);
            max-width: 300px;
            height: auto;
            transform: scale(0.9);
        }
        #head {
            transform: rotate(10deg);
            transform-origin: center 38%;
            animation-name: beary;
            animation-duration: 4s;
            animation-iteration-count: infinite;
            animation-timing-function: linear;
        }
        
        .impl {
            width: calc(100% - 32px);
            height: auto;
            max-width: 300px;
        }
        
        @keyframes beary {
            0% {
                transform: rotate(0deg);
            }
            46% {
                transform: rotate(0deg);
            }
           .........完整代码请登录后点击上方下载按钮下载查看

网友评论0