npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

seamless-scrolling

v0.0.5

Published

一个基于Vue3无缝滚动,支持单步停止、hover/touch停止、默认单行滚动内容满足可视区域才滚动,也可以设置内容不满足也滚动

Downloads

5

Readme

使用

安装npm i seamless-scrolling 或者 yarn add seamless-scrolling

<script setup>
import { SeamlessScrolling } from 'seamless-scrolling'
</script>

API

props

| 参数 | 说明 | 类型 | 默认值 | 必填 | |-----|:------|------|-------|-------| | modelValue | 是否开启自动滚动 | Boolean | true | - | | list | 原始数据列表 | Array | [] | 是 | | step | 速度,step 需是单步大小的约数,大于0 | Number | 1 | - | | limitScrollNum | 开启滚动的数据量 | Number | 1 | - | | hover | 是否开启鼠标悬停, tips:这个开启会与移动端的touchend冲突 | Boolean | false | - | | direction | 方向 | String | 'up' | - | | singleWidth | 单步运动停止的宽度 | Number | 0 | - | | singleWaitTime | 单步停止等待时间 (默认值 1000ms) | Number | 1000 | - | | isWatch | 开启数据更新监听 | Boolean | true | - | | delay | 动画延迟时间 | Number | 0 | - | | ease | 动画方式 | [String, Object] | 'linear' | - | | count | 动画次数-1 表示一直动画 | Number | -1 | - | | copyNum | 拷贝几份滚动列表 | Number | 1 | - | | wheel | 开启鼠标悬停时支持滚轮滚动 | Boolean | false | - | | singleLine | 启用单行滚动 | Boolean | false | - | | lessVisibleAreaScrolling | 单行滚动,少于可视区域是否滚动 | Boolean | false | - |

event

| 事件名 | 说明 | |-----|:------| | Reset | 重置 |