css实现按钮悬浮动画效果代码

代码语言:html

所属分类:悬停

代码描述:css实现按钮悬浮动画效果代码

代码标签: css 按钮 悬浮 动画

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

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

<head>
    <meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/destyle.css">
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <style>
        body {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 100vh;
      background-color: #ff4655;
      font-family: "Arial", sans-serif;
    }
    
    .email-cta__sign {
      border: 1px solid rgba(255, 255, 255, 0.5);
      position: relative;
      padding: 1.2rem 0.5rem;
    }
    .email-cta__sign::after {
      content: "";
      position: absolute;
      top: 45%;
      left: -5%;
      background-color: #ff4655;
      width: 110%;
      height: 0.4rem;
      z-index: 1;
    }
    .email-cta__sign-link {
      padding: 0.8rem 2rem;
      background-color: #fff;
      font-weight: bold;
      z-index: 2;
      position: relative;
      font-size: 0.8rem;
      background: linear-gradient(-15deg, #000 50%, #fff 50%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0