h-stick

1.0.0 • Public • Published

h-stick

这是一个滑动置顶,具体请看demo.

引入方式

1.npm

 $ npm install @h-stick --save //安装

 require('h-stick')
 或者
 import 'h-stick';

初始化

hStick.init();

滑动置顶的元素添加class:sticky-wrap

<div class="sticky-wrap">
        <ul class="nav">
            <li>推荐</li>
            <li>分类</li>
            <li>头条</li>
        </ul>
</div>

demo

https://hezhengjie.github.io/h-stick/demo/index.html

Readme

Keywords

Package Sidebar

Install

npm i h-stick

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • hezhengjie