当前位置: 首页 > news >正文

喜马拉雅项目调整

文章目录

    • 1 频道部分
      • 下标旋转
      • 频道列表平移
    • 2 渐变按钮
      • 搜索放大镜
      • 登录按钮
      • 径向渐变
    • 3 左右图片缩小
      • 左边
      • 右边
    • 4 猜你喜欢区域
      • 播放按钮和遮罩
      • 图片缩放

1 频道部分

下标旋转

.x-header-nav .nav-item:hover .icon-down {transform: rotate(-180deg);
}

频道列表平移

.channel-layer {position: absolute;top: 60px;left: 50%;z-index: -2;width: 1080px;height: 120px;padding: 10px;margin-left: -540px;color: #72727b;background-color: #f5f5f5;border: 1px solid #e4e4e4;border-top: none;transition: all 0.5s;transform: translateY(-120px);
}/* TODO 2. 弹窗频道 */
.x-header-nav .nav-item:hover .channel-layer {transform: translateY(0);
}
  • transform: translateY(-120px); 将元素向上移动 120 像素。
  • transform: translateY(0); 将元素移动回到原始位置。

2 渐变按钮

搜索放大镜

/* TODO 3. 渐变按钮 */
.x-header-search form .btn {position: absolute;top: 0;right: 0;width: 60px;height: 40px;line-height: 40px;text-align: center;background-color: #f86442;border-top-right-radius: 20px;border-bottom-right-radius: 20px;background-image: linear-gradient(to right,rgba(255, 255, 255, 0.3),#f86442);
}

登录按钮

/* TODO 7. 渐变按钮 */
.card .card-info .login {padding: 3px 34px;color: #fff;background-color: #ff7251;border-radius: 30px;box-shadow: 0 4px 8px 0 rgb(252 88 50 / 50%);background-image: linear-gradient(to right,rgba(255, 255, 255, 0.2),#ff7251);
}

径向渐变

/* TODO 8. 径向渐变 */
.download .dl .dl-btn {width: 68px;height: 34px;line-height: 34px;color: #fff;text-align: center;border-radius: 4px;background-image: radial-gradient(50px at 10px 10px,rgba(255, 255, 255, 0.5),transparent);
}

3 左右图片缩小

左边

/* TODO 4. 摆放图片 */
.banner .banner-list .banner-item.left {z-index: 0;transform: translate(-160px) scale(0.8);transform-origin: left center;
}

右边

.banner .banner-list .banner-item.right {z-index: 0;transform: translate(160px) scale(0.8);transform-origin: right center;
}

4 猜你喜欢区域

播放按钮和遮罩

/* TODO 5. 播放按钮和遮罩 */
.album-item .album-item-box::after {position: absolute;left: 0;top: 0;/*伪元素搭配使用*/content: '';width: 100%;height: 100%;/*既有背景图又有阴影*/background: rgba(0,0,0,.5) url(../assets/play.png) no-repeat center / 20px;opacity: 0;transition: all .5s;
}.album-item .album-item-box:hover::after {opacity: 1;/*把背景图方法到50px*/background-size: 50px;
}

图片缩放

/* TODO 6. 图片缩放 */
.album-item .album-item-box:hover img {transform: scale(1.1);
}
http://www.lryc.cn/news/377968.html

相关文章:

  • 【C++】基础知识--inline(内联)关键字以及与宏的区别
  • opencv的RGB 颜色表
  • __autoload 函数和sql_autoload_register函数
  • Python 中国象棋游戏【含Python源码 MX_011期】
  • wps要会员才能把pdf分开,这不纯属智商税吗
  • springBoot+mongoDB项目中,使用MongoFactory、MongoTemplate分页条件查询,增删查改
  • Leetcode236 二叉树两节点的最近公共祖先
  • Web的UI自动化基础知识
  • 【我是产品经理_注册安全分析报告】
  • Java智慧工地源码 5G智慧工地系统源码 使用SAAS部署 三维可视化管理,与一线生产过程相融合,集成数据后台,统一前端入口,呈现多方项目信息;
  • lock_wait_timeout
  • 【可控图像生成系列论文(二)】MimicBrush 港大、阿里、蚂蚁集团合作论文解读2
  • Linux时间子系统6:NTP原理和Linux NTP校时机制
  • 边缘微型AI的宿主?—— RISC-V芯片
  • MySQL—navicat创建数据库表
  • html做一个画柱形图的软件
  • Pyshark——安装、解析pcap文件
  • java中的Random
  • PyMuPDF 操作手册 - 01 从PDF中提取文本
  • ResNet——Deep Residual Learning for Image Recognition(论文阅读)
  • java基础·小白入门(五)
  • 微观时空结构和虚数单位的关系
  • go-zero使用goctl生成mongodb的操作使用方法
  • 服务器新硬盘分区、格式化和挂载
  • Openldap集成Kerberos
  • (创新)基于VMD-CNN-BiLSTM的电力负荷预测—代码+数据
  • 机器 reboot 后 kubelet 目录凭空消失的灾难恢复
  • Pytorch构建vgg16模型
  • 分支结构相关
  • flutter开发实战-RichText富文本居中对齐