js+svg实现一个按钮提交动画操作反馈效果代码

代码语言:html

所属分类:表单美化

代码描述:js+svg实现一个按钮提交动画操作反馈效果代码

代码标签: 按钮 提交 动画 操作 反馈 效果

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

<!doctype html>
<html lang="zh">
<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">

    <style>
        body {
            font-family: Avenir,'Helvetica Neue', 'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;
            color: #eee;
            background-color: #323232;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        a {
            color: rgba(255, 255, 255, 0.8);
            text-decoration: none;
            border-bottom: 1px solid transparent;
            -webkit-transition: 0.3s;
            transition: 0.3s;
        }
        a:hover {
            color: #fff;
            border-bottom-color: #fff;
        }

        .container {
            text-align: center;
        }

        h1.demo-title {
            position: relative;
            display: inline-block;
            margin: 50px 0 0;
        }
        h1.demo-title:before, h1.demo-title:after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30px;
            height: 1px;
            background-color: rgba(255, 255, 255, 0.8);
        }
        h1.demo-title:before {
            left: -50px;
        }
        h1.demo-title:after {
            right: -50px;
        }

        .demo-subtitle {
            margin: 5px 0 40px;
            color: rgba(255, 255, 255, 0.4);
        }

        .description {
            color: rgba(255, 255, 255, 0.7);
        }

        .showcase {
            position: relative;
            display: -webkit-box;
            display: -webkit-flex;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-align: center;
            -webkit-align-items: center;
            -ms-flex-align: center;
            align-items: center;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            -ms-flex-pack: center;
            justify-content: center;
            margin-top: 50px;
        }
        .showcase button {
            position: relative;
            display: inline-block;
            min-width: 160px;
            border: none;
            background-color: #3A9AD9;
            color: #ffffff;
            letter-spacing: 1px;
            text-transform: uppercase;
            cursor: pointer;
            padding: 10px 20px;
            margin: 0 10px;
            border-radius: 2px;
            -webkit-transition: 0.3s;
            transition: 0.3s;
        }
        .showcase button:not([disabled]):hover {
            background-color: #4fa7dd;
        }
        .showcase button.bordered {
            background-color: transparent;
            border: 2px solid #3A9AD9;
            padding: 8px 0;
        }
        .showcase button.bordered:not([disabled]):hover {
            background-color: #3A9AD9;
            border-color: transparent;
        }
        .showcase button.control-button.........完整代码请登录后点击上方下载按钮下载查看

网友评论0