div+css布局实现一个储钱罐效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现一个储钱罐效果代码

代码标签: 一个 储钱罐 效果

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

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

<head>

    <meta charset="UTF-8">





    <style>
        #coin {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #ccc;
            border: #999 solid 2px;
            top: 30px;
            left: 50%;
            position: absolute;
            animation: glow 1s alternate infinite;
            cursor: pointer;
            z-index: 3;
        }
        #coin.active {
            animation: coin-drop 10s steps(10);
        }

        .piggy {
            width: 400px;
            height: 300px;
            background: #ff6666;
            border-radius: 50%;
            margin: 0 auto;
            margin-top: 100px;
            position: relative;
        }
        .piggy .insert {
            width: 120px;
            height: 10px;
            left: 160px;
            top: 15px;
            position: absolute;
            background: #333;
            border-top: solid 3px #777;
            border-radius: 50% 50% 30% 30%;
        }
        .piggy .cover {
            background: #ff6666;
            width: 115.........完整代码请登录后点击上方下载按钮下载查看

网友评论0