vue3-marquee
777
Stars
32
Forks
3
Watchers
1
Open Issues
MIT
许可证
Vue
语言
2021-10-08
创建时间
2026-11-12
最近更新
项目能做什么
适用于 Vue 3 的简单跑马灯组件,零外部依赖。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# vue3-marquee
[](https://www.npmjs.com/package/vue3-marquee) [](https://www.npmjs.com/package/vue3-marquee) [](https://github.com/megasanjay/vue3-marquee/stargazers) [](https://github.com/megasanjay/vue3-marquee/blob/main/LICENSE) [](https://github.com/megasanjay/vue3-marquee/issues)
A simple marquee component with ZERO dependencies for Vue 3. This component was originally developed for internal use but I figured this could be useful to someone else as well. This component is modeled after a React marquee component I found called [React Fast Marquee](https://github.com/justin-chu/react-fast-marquee). To keep a smooth animation running, clones of the content can be created for seamless transitions with no flickering or empty spaces in between content.
## Demos
View the live demos here: [https://vue3-marquee.vercel.app/examples](https://vue3-marquee.vercel.app/examples)
## Upgrade to v4.x
If you are using version 3.x of `vue3-marquee` you should upgrade to version 4.x. You can do this by running the [Installation and Usage](#installation-and-usage) command below. This add better support for Typescript. There is also a change with the `dist/style.css` import (it's been removed) so take a look at the [new documentation](https://vue3-marquee.vercel.app/introduction/v4) for instructions on how to migrate to this package.
## Installation and Usage
### Vue 3
If you are using npm:
```shell
npm install vue3-marquee@latest --save
```
If you are using yarn:
```shell
yarn add vue3-marquee@latest
```
- Register the component in your Vue 3 application.
The most common use case is to register the component globally.
```js
// main.js
import { createApp } from 'vue'
import Vue3Marquee from 'vue3-marquee'
createApp(App).use(Vue3Marquee).mount('#app')
```
If you need to use a custom component name, you can pass it as an option to the plugin:
```ts
app.use(Vue3Marquee, { name: 'MarqueeAnimation' }) // use in template <MarqueeAnimation />
```
- `name` string (default: 'Vue3Marquee') - set custom component name
Alternatively you can also import the component locally.
```js
import { Vue3Marquee } from 'vue3-marquee'
export default {
components: {
Vue3Marquee,
},
}
```
You can then use the component in your template
```vue
<template>
<Vue3Marquee>
<img height="200" width="300" src="...img" />
<img height="200" width="300" src="...img" />
<img height="200" width="300" src="...img" />
</Vue3Marquee>
</template>
<script>
import { Vue3Marquee } from 'vue3-marquee'
export default {
components: {
Vue3Marquee,
},
}
</script>
```
### Nuxt 3
If you are using npm:
```shell
npm install vue3-marquee@l
阅读完整原文
项目深度分析 规则生成(AI 未配置)
综合评分 45.3 分。该项目在“个人可实施性”维度得 60 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 vue3-marquee 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| cbpowell/MarqueeLabel | 中文介绍暂未生成 A drop-in replacement for UILabel, which automatically adds |
4,297 | Swift |
| sunfusheng/MarqueeView | 中文介绍暂未生成 俗名:可垂直跑、可水平跑的跑马灯;学名:可垂直翻、可水平翻的翻页公告 |
3,775 | Java |
| gongwen/MarqueeViewLibrary | 中文介绍暂未生成 一个帮您快速实现跑马灯效果的library |
2,383 | Java |
| justin-chu/react-fast-marquee | 中文介绍暂未生成 A lightweight React component that harnesses the power of CS |
1,515 | TypeScript |
| aamirafridi/jQuery.Marquee | 中文介绍暂未生成 jQuery plugin to scroll the text like the old traditional ma |
966 | JavaScript |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2021-10-08,近 30 天仍在推送,发布过 11 个 Release |
| 社区活跃 | Star 777 / Fork 32 / Issue 1(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。