
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
vue-marquee-component-fix
Advanced tools
npm install vue-marquee-component-fix --save
The most common use case is to register the component globally.
// in your main.js or similar file
import Vue from 'vue';
import VueMarquee from 'vue-marquee-component-fix';
Vue.use(VueMarquee);
Alternatively you can do this to register the components:
// HelloWorld.vue
import { Marquee, Slide } from 'vue-marquee-component-fix';
export default {
components: {
[Marquee.name]: Marquee,
[Slide.name]: Slide
}
};
On your page you can now use html like this:
<!-- simple marquee text -->
<vue-marquee style="height:50px">
<vue-marquee-slide v-for="i in 30" :key="i">
<span> VUE-MARQUEE-COMPONENT </span>
</vue-marquee-slide>
</vue-marquee>
<!-- Set different directions -->
<!-- left 、 right 、 top 、bottom -->
<vue-marquee style="height:150px" direction="right">
<vue-marquee-slide v-for="i in 30" :key="i">
<div style="width:200px;height:150px">{{ i }}</div>
</vue-marquee-slide>
</vue-marquee>
<!-- Hide scrollbar -->
<vue-marquee style="height:28px" :showProgress="false">
<vue-marquee-slide v-for="i in 30" :key="i">
<span> VUE-MARQUEE-COMPONENT </span>
</vue-marquee-slide>
</vue-marquee>
<!-- fast duration -->
<vue-marquee style="height:28px" :showProgress="false" :duration="52011">
<vue-marquee-slide v-for="i in 99" :key="i">
<span style="padding:0 15px"> 👧 ❤️ 👦 </span>
</vue-marquee-slide>
</vue-marquee>
<!-- Insert any node -->
<vue-marquee>
<vue-marquee-slide v-for="item in list" :key="item.id">
<!-- The component you want to display -->
</vue-marquee-slide>
</vue-marquee>
update here!!!
Prop | Type | Default | Description |
---|---|---|---|
direction | string | left | Move a few degrees (left right top bottom ) |
duration | Number | Total length * 30 | Marquee rolling direction (duration: 0 stop rolling, for modifing css in your page) |
showProgress | Boolean | true | Whether to show the progress bar |
hover | Boolean | true | mouse pointer interact |
If you change the content you need reload the component. For this use property :key
see more
<!-- parse a unique key for reload the component -->
<vue-marquee :key="currentTrack.id">
<vue-marquee-slide>
{{ currentTrack.title }}
</vue-marquee-slide>
</vue-marquee>
FAQs
Vue跑马灯组件,支持四个方向滚动
The npm package vue-marquee-component-fix receives a total of 8 weekly downloads. As such, vue-marquee-component-fix popularity was classified as not popular.
We found that vue-marquee-component-fix 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.