Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
aring-vue-marquee
Advanced tools
AringVueMarquee is a small component similar to the effect of LED rolling light.
简体中文 | English
AringVueMarquee是一个类似LED滚动灯效果的小组件,通过CSS3 Animation + Transform
方案来实现文本滚动以适应移动端,并减轻间隔器方案造成的性能损耗。
您可以自定义 颜色/尺寸/点击事件 等来满足您的业务需求。
npm install aring-vue-marquee -S
在main.js
中
import VueMarquee from 'aring-vue-marquee';
Vue.use(VueMarquee);
<template>
<vue-marquee>
<span>此处定义滚动内容</span>
</vue-marquee>
</template>
<script>
import VueMarquee from 'aring-vue-marquee';
export default {
components: { VueMarquee }
};
</script>
参数 | 类型 | 可选值 | 默认值 | 说明 |
---|---|---|---|---|
speed | Number | —— | 10 | 滚动速度,默认 10,大于 10 则更快,小于 10 则更慢 |
direction | String | up/right/down/left | left | 滚动方向 |
delayTime | Number | —— | 500 | 滚动间隔时间,单位ms |
color | String | —— | #333 | 文本颜色 |
cursor | String | —— | text | 鼠标放置文本时的光标 |
size | String | small/large | —— | 尺寸 |
mouseover | Blooean | —— | true | 是否允许鼠标移入暂停滚动 |
事件名称 | 说明 | 回调参数 |
---|---|---|
click | 可在@click中自定义点击文本的事件 | —— |
方法 | 说明 |
---|---|
stopRoll | 停止滚动 |
continueRoll | 继续滚动 |
reset | 重置 |
插槽名 | 说明 |
---|---|
(default) | 插入滚动内容 |
icon | 前置小图标 |
FAQs
AringVueMarquee is a small component similar to the effect of LED rolling light.
We found that aring-vue-marquee demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.