模仿微信抢红包拆红包效果

代码语言:html

所属分类:红包

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

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>BFW NEW PAGE</title>
    <script id="bfwone" data="dep=jquery.17&err=0" type="text/javascript" src="http://repo.bfw.wiki/bfwrepo/js/bfwone.js"></script>
    <script type="text/javascript">
        bready(function() {
            $(".redbag-open").click(function() {

                $(this).children('.flipper').addClass("rotateopen");
            });
        });
    </script>

    <style type="text/css" media="all">
        .redbag-bg {
            margin: 30px auto;
            color: #ffe294;
            text-align: center;

            height: 550px;
            width: 400px;
            background: url('http://repo.bfw.wiki/bfwrepo/icon/5de0a5e2a0a06.png');
            background-size: cover;

        }
        .redbag-close img {
            width: 20px;
        }
        .redbag-close {

            padding: 30px 10px 0 0;
            text-align: right;
        }
        .redbag-avatar {
            margin-top: 60px;
            margin-left: 160px;
            width: 80px;
            height: 80px;
            border-radius: 50%;
            overflow: hidden;

        }
        .redbag-avatar img {
            width: 80px;
            height: 80px;

        }
        .redbag-open {}
        .redbag-open img {
            width: 30%;
        }
        .redbag-msg {
            font-size: 26px;
            padding: 20px;
        }
        .redbag-nickname {
            padding: 10px;
        }
        .redbag-open {
            perspective: 1000px;
        }
        .redbag-open .rotateopen {
            -webkit-animation: rotateopen 0.6s infinite linear;

        }
        .redbag-open ,.front,.back {
            width: 400px;
            height: 400px;
        }
        .flipper {

            transform-style: preserve-3d;
   .........完整代码请登录后点击上方下载按钮下载查看

网友评论0