Mobile Dual-Direction Linked Category List with Anchor Positioning

Add-ons
2026-07-25 23:08 5 次浏览 • 0 次下载 8.7KB
Mobile Dual-Direction Linked Category List with Anchor Positioning

Last updated: 2020-04-10 08:17:49

Feature Description

Product categories, category layout

Required modules

No dependencies required. Simply include the files to use it.

Quick Start

For more layouts, refer to the original file. The left navigation ul>li corresponds to the right product list ul>li as anchors.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<div class="sort_container" id="sort_container">
<!-- Left navigation -->
<div class="sort_navbar">
<ul>
<li class="on">Category 1</li>
<li>Category 2</li>
</ul>
</div>
<!-- Right-side products -->
<div class="sort_wrap">
<ul>
<li>
/* Title */
<div class="title">Category 1</div>
<div class="product">
<div class="product_box">
/* Product image */
<img src="image/img_1.png"> /* Product name */
<span>Mobile Phone</span>
</div>
<div class="product_box">
/* Product image */
<img src="image/img_2.png"> /* Product name */
<span>Mobile Phone</span>
</div>
</div>
</li>
<li>
/* Title */
<div class="title">Category 1</div>
<div class="product">
<div class="product_box">
/* Product image */
<img src="image/img_1.png"> /* Product name */
<span>Mobile Phone</span>
</div>
<div class="product_box">
/* Product image */
<img src="image/img_2.png"> /* Product name */
<span>Mobile Phone</span>
</div>
</div>
</li>
</ul>
</div>
</div>
// Initialization code: window.onload = function () { isCategory.init(); }

Special Note

Due to platform differences, clicking the navigation item triggers a smooth scrolling animation on Android, while iOS jumps directly to the anchor position.

To modify the styles, refer to the CSS file. For additional custom features, feedback, or bug reports, contact QQ:910547462.

星河码客

发现和分享优质开源项目,传承互联网精神,为开发者服务。

关于本站

联系我们

微信/广告合作:ITcloub (备注星河码客)

免责声明:本站资源版权归原作者所有,仅供学习与交流。如有侵权,请通过「关于我们 - 侵权投诉」联系删除。

Powered by Nuxt · Deployed on Cloudflare