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=Lato&display=swap" rel="stylesheet">
    <style>
        body {
    background: #e0e5ec;
  }

  h1 {
    position: relative;
    text-align: center;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 20px;
  }

  * {
  padding: 0;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  box-sizing: border-box;
  }
  
  p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    text-align: center;
    font-size: 18px;
    color: #676767;
    position: relative;

  }

  .frame {
    width: 90%;
    margin: 40px auto;
    text-align: center;
  }

  button {
    margin: 20px;
    position: relative ;
  }

  .custom-btn {
    width: 130px;
    height: 40px;
    color: #fff;
    border-radius: 5px;
    padding: 10px 25px;
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
     box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
     7px 7px 20px 0px rgba(0,0,0,.1),
     4px 4px 5px 0px rgba(0,0,0,.1);
    outline: none;
  }

    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0