• 2022-c纯css3-霓虹灯-button


    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述
    在这里插入图片描述

    DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>霓虹灯-buttontitle>
        <style>
            html,body {margin: 0;padding: 0;}
            body {
                overflow: hidden;
                display: flex;
                flex-direction: row;
                justify-content: center;
                align-items: center;
                flex-wrap: wrap;
                min-height: 100vh;
                background-color: #000000;
            }
            .btn {
                overflow: hidden;
                position: relative;
                padding: 15px 30px;
                margin: 0 20px;
                color: #74e9fd;
                font-size: 20px;
                text-decoration: none;
                text-transform: uppercase;
                transition: all .3s;
                /* -webkit-box-reflect: below 1px linear-gradient(transparent, #0003); */
            }
            .btn:nth-child(1) {
                filter: hue-rotate(60deg);
            }
            .btn:nth-child(3) {
                filter: hue-rotate(240deg);
            }
            .btn::before,
            .btn::after {
                position: absolute;
                content: "";
                width: 10px;
                height: 10px;
                transition: all .3s;
                transition-delay: 0.3s;
            }
            .btn::before {
                top: 0;
                left: 0;
                border-top: 2px solid #74e9fd;
                border-left: 2px solid #74e9fd;
            }
            .btn::after {
                bottom: 0;
                right: 0;
                border-bottom: 2px solid #74e9fd;
                border-right: 2px solid #74e9fd;
            }
            .btn:hover {
                color: #111;
                background-color: #9efcf4;
                box-shadow: 0 0 25px #9efcf4;
                transition-delay: 0.3s;
                -webkit-box-reflect: below 5px linear-gradient(transparent, #0003);
            }
            .btn:hover::before,
            .btn:hover::after {
                width: 100%;
                height: 100%;
                transition-delay: 0s;
            }
            /* auto-animate */
            .auto-animate {
                overflow: hidden;
                position: relative;
                display: inline-block;
                padding: 25px 30px;
                margin: 50px 10px;
                text-decoration: none;
                color: #03e9f4;
                transition: 0.5s;
                letter-spacing: 4px;
                -webkit-box-reflect: below 10px linear-gradient(transparent, #000500);
            }
            .auto-animate:nth-child(4) {
                filter: hue-rotate(290deg);
            }
            .auto-animate:nth-child(6) {
                filter: hue-rotate(110deg);
            }
            .auto-animate:hover {
                color: #050801;
                background-color: #03e9f4;
                box-shadow: 0 0 5px #03e9f4,
                            0 0 25px #03e9f4,
                            0 0 50px #03e9f4,
                            0 0 200px #03e9f4;
                /* -webkit-box-reflect: below 10px linear-gradient(transparent, #000500); */
            }
            .auto-animate span {
                display: block;
                position: absolute;
            }
            .auto-animate span:nth-child(1) {
                top: 0;
                left: 0;
                width: 100%;
                height: 2px;
                background: linear-gradient(0deg, transparent, #03e9f4);
                animation: animate1 1s linear infinite;
            }
            @keyframes animate1 {
                0% {
                    left: -100%;
                }
                50%, 100% {
                    left: 100%;
                }
            }
            .auto-animate span:nth-child(2) {
                top: 0;
                right: 0;
                width: 2px;
                height: 100%;
                background: linear-gradient(90deg, transparent, #03e9f4);
                animation: animate2 1s linear infinite;
                animation-delay: 0.25s;
            }
            @keyframes animate2 {
                0% {
                    top: -100%;
                }
                50%, 100% {
                    top: 100%;
                }
            }
            .auto-animate span:nth-child(3) {
                right: 0;
                bottom: 0;
                width: 100%;
                height: 2px;
                background: linear-gradient(180deg, transparent, #03e9f4);
                animation: animate3 1s linear infinite;
                animation-delay: 0.5s;
            }
            @keyframes animate3 {
                0% {
                    right: -100%;
                }
                50%, 100% {
                    right: 100%;
                }
            }
            .auto-animate span:nth-child(4) {
                left: 0;
                bottom: 0;
                width: 2px;
                height: 100%;
                background: linear-gradient(270deg, transparent, #03e9f4);
                animation: animate4 1s linear infinite;
                animation-delay: 0.75s;
            }
            @keyframes animate4 {
                0% {
                    bottom: -100%;
                }
                50%, 100% {
                    bottom: 100%;
                }
            }
        style>
    head>
    <body>
        <a href="javascript:;" class="btn">button1a>
        <a href="javascript:;" class="btn">button2a>
        <a href="javascript:;" class="btn">button3a>
    
        <a href="javascript:;" class="auto-animate">
            <span>span>
            <span>span>
            <span>span>
            <span>span>
            NONE BUTTON
        a>
        <a href="javascript:;" class="auto-animate">
            <span>span>
            <span>span>
            <span>span>
            <span>span>
            NONE BUTTON
        a>
        <a href="javascript:;" class="auto-animate">
            <span>span>
            <span>span>
            <span>span>
            <span>span>
            NONE BUTTON
        a>
    body>
    html>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
    • 102
    • 103
    • 104
    • 105
    • 106
    • 107
    • 108
    • 109
    • 110
    • 111
    • 112
    • 113
    • 114
    • 115
    • 116
    • 117
    • 118
    • 119
    • 120
    • 121
    • 122
    • 123
    • 124
    • 125
    • 126
    • 127
    • 128
    • 129
    • 130
    • 131
    • 132
    • 133
    • 134
    • 135
    • 136
    • 137
    • 138
    • 139
    • 140
    • 141
    • 142
    • 143
    • 144
    • 145
    • 146
    • 147
    • 148
    • 149
    • 150
    • 151
    • 152
    • 153
    • 154
    • 155
    • 156
    • 157
    • 158
    • 159
    • 160
    • 161
    • 162
    • 163
    • 164
    • 165
    • 166
    • 167
    • 168
    • 169
    • 170
    • 171
    • 172
    • 173
    • 174
    • 175
    • 176
    • 177
    • 178
    • 179
    • 180
    • 181
    • 182
    • 183
    • 184
    • 185
    • 186
    • 187
    • 188
    • 189
    • 190
    • 191
    • 192
    • 193
    • 194
    • 195
    • 196
    • 197
    • 198
    • 199
  • 相关阅读:
    施努卡:什么是视觉定位系统 视觉系统如何定位
    2023年09月 Python(五级)真题解析#中国电子学会#全国青少年软件编程等级考试
    Git中的HEAD
    课题学习(四)----四元数解法
    C++11~C++20 新基础类型
    redis 生成流水工具类
    2023最新AI创作商用ChatGPT源码分享+支持AI绘画
    请问怎么编程菜单和好多东西学校都没教
    计组实践实验9——使用CMStudio设计基于分段模型机微程序指令(2)
    【23真题】准考证抄出来的题目,还原度99%以上!
  • 原文地址:https://blog.csdn.net/itwangyang520/article/details/127747073