返回列表 发帖
查看: 2017|回复: 0

纯css滚动进度条,横向进度条随着页面滚动而变化

31

主题

41

回帖

99

积分

渐入佳境

贡献
1 点
金币
17 个
发表于 2021-2-7 21:15:34 | 显示全部楼层 |阅读模式
效果如下:
240317077s.png
鼠标往下移动就会变化
  1.     <style>
  2.         body {
  3.             background-image: linear-gradient(to top right, #32a6ff 50%, #fff 50%);
  4.             background-size: 100% calc(100% - 100vh + 5px);
  5.             background-repeat: no-repeat;
  6.         }

  7.             body::after {
  8.                 content: '';
  9.                 position: fixed;
  10.                 top: 3px;
  11.                 bottom: 0;
  12.                 left: 0;
  13.                 right: 0;
  14.                 background: #fff;
  15.                 z-index: -1;
  16.             }
  17.     </style>
复制代码


有为设计专注您的前端。应用中心地址https://addon.dismall.com/developer-101396.html
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

  • 关注公众号
  • 有偿服务微信
  • 有偿服务QQ

手机版|小黑屋|Discuz! 官方交流社区 ( 皖ICP备16010102号 |皖公网安备34010302002376号 )|网站地图|star

GMT+8, 2024-4-19 13:54 , Processed in 0.412780 second(s), 8 queries , Redis On.

Powered by Discuz! W1.0 Licensed

Cpoyright © 2001-2024 Discuz! Team.

关灯 在本版发帖
有偿服务QQ
有偿服务微信
返回顶部
快速回复 返回顶部 返回列表