css带气泡悬浮文字弹出效果代码的立体图标按钮效果代码

代码语言:html

所属分类:悬停

代码描述:css带气泡悬浮文字弹出效果代码的立体图标按钮效果代码

代码标签: css 悬浮 气泡 文字 按钮

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">


    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.5.15.3.css">
    <style>

        
        @import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
        
        * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
        }
        
        *:focus,
        *:active {
          outline: none !important;
          -webkit-tap-highlight-color: transparent;
        }
        
        html,
        body {
          display: grid;
          height: 100%;
          width: 100%;
          font-family: "Poppins", sans-serif;
          place-items: center;
          background: linear-gradient(315deg, #ffffff, #d7e1ec);
        }
        
        .wrapper {
          display: inline-flex;
        }
        
        .wrapper .icon {
          position: relative;
          background-color: #ffffff;
          border-radius: 50%;
          padding: 15px;
          margin: 10px;
          width: 50px;
          height: 50px;
          font-size: 18px;
          display: flex;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
          cursor: pointer;
          transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        .wrapper .tooltip {
          position: absolute;
          top: 0;
          font-size: 14px;
          background-color: #ffffff;
          color: #ffffff;
          padding: 5px 8px;
          border-radius: 5px;
          box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
          opacity: 0;
          pointer-events: none;
          transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        .wrapper .tooltip::before {
          position: absolute;
          content: "";
          height: 8px;
          width: 8px;
          background-color: #ffffff;
          bottom: -3px;
          left: 50%;
          transform: translate(-50%) rotate(45deg);
          transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
        
        .wrapper .icon:hover .tooltip {
          top: -45px;
          opacity: 1;
          visibility: visible;
    .........完整代码请登录后点击上方下载按钮下载查看

网友评论0