css实现书本悬浮打开图文动画效果代码

代码语言:html

所属分类:悬停

代码描述:css实现书本悬浮打开图文动画效果代码

代码标签: css 书本 悬浮 打开 图文 动画

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">




    <style>
 
        
        * {
          margin: 10px;
          padding: 0;
          box-sizing: border-box;
          font-family: "Barlow Semi Condensed", sans-serif;
        }
        body {
          display: flex;
          justify-content: center;
          align-items: center;
          min-height: 100vh;
          background: #151515;
        }
        .card {
          position: relative;
          width: 350px;
          height: 350px;
          display: flex;
          justify-content: center;
          align-items: center;
          transition: 0.5s;
          transition-delay: 0.5s;
        }
        .card:hover {
          width: 600px;
          transition-delay: 0.5s;
        }
        .card .circle {
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          border-radius: 20px;
          display: flex;
          justify-content: center;
          align-items: center;
        }
        .card .circle::before {
          content: "";
          position: absolute;
          top: 30;
          left: 2;
          right: 2;
          width: 470px;
          height: 470px;
          border-radius: 50%;
          background: #191919;
          border: 8px solid var(--clr);
          filter: drop-shadow(0 0 10px var(--clr)) drop-shadow(0 0 60px var(--clr));
          transition: 0.5s, background 0.5s;
          transition-delay: 0.75s, 1s;
        }
        .card:hover .circle::before {
          transition-delay: 0.5s;
          width: 100%;
          height: 100%;
          border-radius: 20px;
          background: var(--clr);
        }
        .card .circle .logo {
          position: relative;
          width: 250px;
          transition: 0.5s;
          transition-delay: 0.5s;
        }
        .card:hover .circle .logo {
          transform: scale(0);
          transition-delay: 0s;
        }
        .card .product_img {
          position: absolute;
          top:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0