1 Star 0 Fork 1

每天过得都像复制粘贴 / Fixed_SideBar_List

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

✨ Fixed_SideBar_List ✨

🍬 博客

🍮 简介

  • JQuery 实现带粘性侧边栏的列表,滚动时自动切换菜单。(Desktop + Mobile ver.)
  • 在线尝试
  • 效果预览:

🍫 实现功能

🍩 顶部导航栏

  • 滚动时固定在页面最上方。

🍩 侧边菜单栏

  1. 一般状态下和右侧列表构成 flex 左右布局。
  2. 点击菜单滚动到右侧列表相应的红色标题上方。
  3. 滚动距离进入中间白色内容区时固定在侧边。
  4. 滚动距离离开中间白色内容区时恢复一般状态。
  5. 滚动距离进入内容区右侧列表红色标题时,自动切换到相应的菜单栏。

🍩 右侧列表区

  1. 鼠标经过问题时显示白色背景和阴影,问题展开时无此效果。
  2. 点击问题时切换内容展开/折叠状态。
  3. 对于同一个菜单下的问题,每次有且仅有一个被展开,即点击其他问题会折叠当前展开的问题。
  4. 同一个菜单下最多显示 5 个问题,超出的问题隐藏并显示 “Show more”。
  5. 点击 “Show more” 显示当前菜单下所有问题,点击 “Hide” 隐藏当前菜单下超出数量的问题。
MIT License Copyright (c) 2023 郁子IKUKO Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

JQuery实现带粘性侧边栏的列表,滚动时自动切换菜单。 展开 收起
JavaScript
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/bminghong/fixed-side-bar-list.git
git@gitee.com:bminghong/fixed-side-bar-list.git
bminghong
fixed-side-bar-list
Fixed_SideBar_List
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891