手机电池充电液体波动动画效果

代码语言:html

所属分类:动画

代码描述:手机电池充电液体波动动画效果

代码标签: 波动 动画 效果

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

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>

<style>
html,
body {
        width: 100%;
        height: 100%;
        display: flex;
        background: #e4e4e4;
}

.container {
        position: relative;
        width: 140px;
        margin: auto;
}

.header {
        position: absolute;
        width: 26px;
        height: 10px;
        left: 50%;
        top: 0;
        transform: translate(-50%, -10px);
        border-radius: 5px 5px 0 0;
        background: rgba(255, 255, 255, .88);
}

.battery-copy {
        position: absolute;
        top: 0;
        left: 0;
        height: 220px;
        width: 140px;
        border-radius: 15px 15px 5px 5px;
        overflow: hidden;
}

.battery {
        position: relative;
        height: 220px;
        box-sizing: border-box;
        border-radius: 15px 15px 5px 5px;
        box-shadow: 0 0 5px 2px rgba(255, 255, 255, 0.22);
        background: #fff;
        z-index: 1;
}

.battery::after {
        content: "";
        position: abso.........完整代码请登录后点击上方下载按钮下载查看

网友评论0