css实现24种模态弹出层代码

代码语言:html

所属分类:弹出层

代码描述:css实现24种模态弹出层代码

代码标签: css 24 模态 弹出层 代码

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

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

<head>
  <meta charset="UTF-8">
  

  <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Faculty+Glyphic&amp;display=swap'>
  
<style>
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Faculty Glyphic', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            gap: 40px;
            background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
            padding: 20px;
        }
        
        .copy {
          position: fixed;
          top: 20px;
          left: 20px;
          color: #000;
          background: rgb(255 255 255 / .7);
          padding: 10px;
          border-radius: 5px;
          font-size: 12px;
          z-index: 2
          }

        .buttons-container {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
            max-width: 1200px;
        }

        .glow-button {
            background: #11151c;
            color: #ffffff;
            font-size: 14px;
            font-weight: 300;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            padding: 12px 22px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 100px;
            cursor: pointer;
            outline: none;
            position: relative;
            overflow: visible;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all 0.5s ease-in-out;
            flex: 0 0 auto;
            min-width: 100px;
        }

        .glow-button::before {
            content: '';
            position: absolute;
            width: 45%;
            height: 55%;
            border-radius: 50%;
            filter: blur(20px);
            opacity: 0.6;
            z-index: 1;
            transition: all 0.5s ease-in-out;
        }

        .glow-button span {
            position: relative;
            z-index: 2;
            white-space: nowrap;
        }

        .glow-button:hover {
            border-color: rgba(255, 255, 255, 0.6);
        }

        .glow-button:hover::before {
            width: 90%;
            height: 90%;
            filter: blur(15px);
            opacity: 0.8;
        }

        /* Violet */
        .btn-violet::before { background: #6c5ce7; }
        .btn-violet:hover {
            background: #5a4bd1;
            box-shadow: 0 0 40px 10px rgba(108, 92, 231, 0.7),
                        0 0 75px 20px rgba(108, 92, 231, 0.4),
                        inset 0 0 20px rgba(255, 255, 255, 0.3);
        }

        /* Green */
        .btn-green::before { background: #00b894; }
        .btn-green:hover {
            background: #00a381;
            box-shadow: 0 0 40px 10px rgba(0, 184, 148, 0.7),
                        0 0 75px 20px rgba(0, 184, 148, 0.4),
                        inset 0 0 20px rgba(255, 255, 255, 0.3);
        }

        /* Pink */
        .btn-pink::before { background: #fd79a8; }
        .btn-pink:hover {
            background: #e86a99;
            box-shadow: 0 0 40px 10px rgba(253, 121, 168, 0.7),
                        0 0 75px 20px rgba(253, 121, 168, 0.4),
                        inset 0 0 20px rgba(255, 255, 255, 0.3);
        }

        /* Yellow */
        .btn-yellow::before { background: #fdcb6e; }
        .btn-yellow:hover {
            background: #f0b84d;
            box-shadow: 0 0 40px 10px rgba(253, 203, 110, 0.7),
                        0 0 75px 20px rgba(253, 203, 110, 0.4),
                        inset 0 0 20px rgba(255, 255, 255, 0.3);
        }
        .btn-yellow span { color: #ffffff; }

        /* Light Violet */
        .btn-light-violet::before { background: #a29bfe; }
        .btn-light-violet:hover {
            background: #8b84e8;
            box-shadow: 0 0 40px 10px rgba(162, 155, 254, 0.7),
                        0 0 75px 20px rgba(162, 155, 254, 0.4),
                        inset 0 0 20px rgba(255, 255, 255, 0.3);
        }

        /* Red */
        .btn-red::before { background: #ff7675; }
        .btn-red:hover {
            backg.........完整代码请登录后点击上方下载按钮下载查看

网友评论0