小编use*_*128的帖子

SVG水填充动画

我想要一个擦拭动画看起来像水滴在一滴内.它目前是一个正方形,在下降标志的顶部有一个波浪动画.它正确地完成了波浪动画,但是我不能让它留在掉落中并且也填满了.

我越来越近,但我仍然需要实际的徽标至少在圈内.

我的进步:

<!DOCTYPE html>
<html lang="en">
<head>

    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>SVG Line Animation Demo</title>

</head>
<body>
<style>

    .st0{fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:5;}
    .st1{fill:none;stroke:#000000;stroke-width:3;stroke-miterlimit:5;}

    #logo2 {
        width: 150px !important;
        height: 150px !important;
        position: relative;
        margin-top: -100px;
    }

    #banner {
        border-radius: 50%;
        width: 150px;
        height: 150px;
        background: #fff;
        overflow: hidden;
        backface-visibility: hidden;
        transform: translate3d(0, 0, 0);
        z-index: -1;
        margin-bottom: -50px;
    }

    #banner .fill {
        animation-name: fillAction;
        animation-iteration-count: 1;
        animation-timing-function: cubic-bezier(.2, .6, .8, .4);
        animation-duration: 4s;
        animation-fill-mode: forwards;
    } …
Run Code Online (Sandbox Code Playgroud)

javascript css animation svg fill

8
推荐指数
1
解决办法
4433
查看次数

标签 统计

animation ×1

css ×1

fill ×1

javascript ×1

svg ×1