CSS3动画暗角按钮

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 CSS3动画暗角按钮 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

CSS3动画暗角按钮

HTML代码(index.html):

<!DOCTYPE html>
<html>
<head>
    <title>CSS3�������ǰ�ť</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <style type="text/css">
        /* ---------- CSS3 Animated Vignette Buttons by MightyMeta ---------- */

        /* ---------- General Demo Styling - You Can Ignore This Bit ---------- */

        body {
            position: relative;
            text-align: center;
            background-color: #212322;
        }

        h1 {
            color: #1A897A;
            font-family: Palatino,serif;
            font-size: 60px;
            margin: 40px;
            text-shadow: 2px 2px 0 #184E2B;
        }

        #demo-box {
            width: 550px;
            margin: 40px auto;
            padding: 40px 40px 20px;
            background-color: #C7E1D5;
            -moz-border-radius: 12px;
            -webkit-border-radius: 12px;
            -o-border-radius: 12px;
            border-radius: 12px;
            overflow: hidden;
        }

        .button {
            float: left;
            margin-bottom: 30px;
        }

        #info-box {
            clear: left;
            padding: 20px 20px 10px;
            background-color: #ABD5C1;
            -moz-border-radius: 10px 10px 10px 10px;
            -webkit-border-radius: 10px 10px 10px 10px;
            -o-border-radius: 10px 10px 10px 10px;
            border-radius: 10px 10px 10px 10px;
        }

        p {
            margin: 0 0 1.2em;
            color: #333333;
            font-family: Arial,sans-serif;
            font-size: 13px;
            line-height: 1.3em;
        }

        .article-link {
            color: #198975;
        }

            .article-link:hover {
                text-decoration: none;
            }

        #whodunnit {
            position: fixed;
            right: 0;
            bottom: 0;
            width: 200px;
            height: 25px;
            padding-top: 5px;
            font-family: Arial, sans-serif;
            font-weight: bold;
            font-size: 16px;
            text-decoration: none;
            color: #fff;
            background-color: #2C2C2C;
        }

            #whodunnit:hover {
                text-shadow: 0 0 10px #fff;
            }

        span {
            color: #198975;
        }

        /* ----------------------------------------------------------------- */
        /* -------------------- The Button Goodness !!! -------------------- */
        /* ----------------------------------------------------------------- */

        /* ---------- Example One ---------- */

        #eg1 {
            background: url(images/background.png) no-repeat center -105px; /* Fallback */
            display: block;
            width: 5em;
            padding: 30px 40px;
            text-align: center;
            font-family: Arial, sans-serif;
            font-size: 18px;
            color: #fff;
            text-decoration: none;
            text-shadow: 1px 1px 0px #000;
            -moz-border-radius: 25px;
            -webkit-border-radius: 25px;
            -o-border-radius: 25px;
            border-radius: 25px;
            background: url(images/linear-gradient.png) no-repeat 0px -400px, url(images/background.png) no-repeat center -8px;
            -moz-box-shadow: 2px 2px 10px #000;
            -webkit-box-shadow: 2px 2px 10px #000;
            -o-box-shadow: 2px 2px 10px #000;
            box-shadow: 2px 2px 10px #000;
            -moz-transition: all 1s ease;
            -webkit-transition: all 1s ease;
            -o-transition: all 1s ease;
            transition: all 1s ease;
        }

            #eg1:hover {
                background: url(images/background.png) no-repeat center -5px; /* Fallback */
                background: url(images/linear-gradient.png) no-repeat 0px 0px, url(images/background.png) no-repeat center -8px;
                -moz-transition: all 1s ease;
                -webkit-transition: all 1s ease;
                -o-transition: all 1s ease;
                transition: all 1s ease;
            }

        /* ---------- Example Two ---------- */

        #eg2 {
            background: url(images/background.png) no-repeat center -105px; /* Fallback */
            display: block;
            width: 5em;
            margin: 0px 20px;
            padding: 30px 40px;
            text-align: center;
            font-family: Arial, sans-serif;
            font-size: 18px;
            color: #fff;
            text-decoration: none;
            text-shadow: 1px 1px 0px #000;
            -moz-border-radius: 25px;
            -webkit-border-radius: 25px;
            -o-border-radius: 25px;
            border-radius: 25px;
            background: url(images/stripes.png) no-repeat 0px 0px, url(images/background.png) no-repeat center -8px;
            -moz-box-shadow: 2px 2px 10px #000;
            -webkit-box-shadow: 2px 2px 10px #000;
            -o-box-shadow: 2px 2px 10px #000;
            box-shadow: 2px 2px 10px #000;
            -moz-transition: all 1s ease-out;
            -webkit-transition: all 1s ease-out;
            -o-transition: all 1s ease-out;
            transition: all 1s ease-out;
        }

            #eg2:hover {
                background: url(images/background.png) no-repeat center -5px; /* Fallback */
                background: url(images/stripes.png) no-repeat 0px -200px, url(images/background.png) no-repeat center -8px;
                -moz-transition: all 0.5s ease;
                -webkit-transition: all 0.5s ease;
                -o-transition: all 0.5s ease;
                transition: all 0.5s ease;
            }

        /* ---------- Example Three ---------- */

        #eg3 {
            background: url(images/background.png) no-repeat center -105px; /* Fallback */
            display: block;
            width: 5em;
            padding: 30px 40px;
            text-align: center;
            font-family: Arial, sans-serif;
            font-size: 18px;
            color: #fff;
            text-decoration: none;
            text-shadow: 1px 1px 0px #000;
            -moz-border-radius: 25px;
            -webkit-border-radius: 25px;
            -o-border-radius: 25px;
            border-radius: 25px;
            background: url(images/radial-gradient.png) no-repeat center center, url(images/background.png) no-repeat center -8px;
            -moz-box-shadow: 2px 2px 10px #000;
            -webkit-box-shadow: 2px 2px 10px #000;
            -o-box-shadow: 2px 2px 10px #000;
            box-shadow: 2px 2px 10px #000;
            -moz-background-size: 200px 200px, 180px 200px;
            -webkit-background-size: 200px 200px, 180px 200px;
            -o-background-size: 200px 200px, 180px 200px;
            background-size: 200px 200px, 180px 200px;
            -moz-transition: all 0.75s ease;
            -webkit-transition: all 0.75s ease;
            -o-transition: all 0.75s ease;
            transition: all 0.75s ease;
        }

            #eg3:hover {
                background: url(images/background.png) no-repeat center -5px; /* Fallback */
                background: url(images/radial-gradient.png) no-repeat center center, url(images/background.png) no-repeat center -8px;
                -moz-background-size: 1000px 1000px, 180px 200px;
                -webkit-background-size: 1000px 1000px, 180px 200px;
                -o-background-size: 1000px 1000px, 180px 200px;
                background-size: 1000px 1000px, 180px 200px;
                -moz-transition: all 1s ease;
                -webkit-transition: all 1s ease;
                -o-transition: all 1s ease;
                transition: all 1s ease;
            }
    </style>

</head>

<body>
    <h1>CSS3�������ǰ�ť</h1>
    <div id="demo-box">
        <a id="eg1" class="button" href="#">Fade In</a>
        <a id="eg2" class="button" href="#">Peer Thro'</a>
        <a id="eg3" class="button" href="#">Iris</a>

        <div id="info-box">
            <p>These buttons are made by styling a single anchor element with CSS3 multiple backgrounds. They use two images - a background pattern and then a semi-transparent .png 'vignette' which sits over the top. The vignette position or size is then animated using the transition property in Chrome, Safari and Firefox 4.
            <p>They fallback nicely in browsers that don't fully support the CSS3 properties in use.</p>
            <p>For more info check out the source or this accompanying article.</p>
        </div><!-- end info-box-->
    </div><!-- end demo-box-->
</body>

</html>
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
28.28 KB
Html CSS3特效
最新结算
股权转让协议意向书模板
类型: .docx 金额: CNY 2.23¥ 状态: 待结算 详细>
股权转让协议意向书模板
类型: .docx 金额: CNY 0.28¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3图片向上3D翻转渐隐消失特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 2.39¥ 状态: 待结算 详细>
.net c# 将金额转人名币大写金额
类型: .rar 金额: CNY 0.3¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 2.23¥ 状态: 待结算 详细>
合伙退伙协议书范本模板
类型: .doc 金额: CNY 0.28¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章