div+css实现中性确认按钮悬浮效果代码

代码语言:html

所属分类:悬停

代码描述:div+css实现中性确认按钮悬浮效果代码

代码标签: div css 中性 确认 按钮 悬浮

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

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

<head>
    <meta charset="UTF-8">
    <link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,300&display=swap" rel="stylesheet">
    <style>
        * {
      margin: 0;
      padding: 0;
      font-family: 'Poppins', sans-serif;
    }
    
    body {
      display: flex;
      justify-content: center;
      align-items: center;
      
      width: 100vw;
      height: 100vh;
      
      background-color: #b87ae0;
    }
    
    #container {
      width: 90%;
      height: 90%;
      
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
    }
    
    .main-h1 {
      margin: 0 0 10em 0;
      
    }
    
    h1 {
      font-size: 2em;
      font-weight: 300;
      color: #fff;
      text-shadow: 0 0 0.2em #fff;
    }
    
    .buttons {
      display: flex;
      align-items: center;
      justfy-content: center;
    }
    
    .button-right {
      margin: 0 2em 0 0;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 10em;
      height: 10em;
      
      border-radius: 50px;
      background: linear-gradient(145deg, #a66eca, #c583f0);
      box-shadow:  20px 20px 60px #9c68be,
                 -20px -20px 60px #d48cff;
    }
    
    .button-left {
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0