Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
vue-marquee-text-component
Advanced tools
[CSS GPU Animation] Marquee Text for vuejs
Weekly downloads
Readme
[CSS GPU Animation] Marquee Text for vuejs
npm install vue-marquee-text-component
or yarn add vue-marquee-text-component
The most common use case is to register the component globally.
// in your main.js or similar file
import Vue from 'vue'
import MarqueeText from 'vue-marquee-text-component'
Vue.component('marquee-text', MarqueeText)
Alternatively you can do this to register the components:
// HelloWorld.vue
import MarqueeText from 'vue-marquee-text-component'
export default {
name: 'HelloWorld',
components: {
MarqueeText
}
}
On your page you can now use html like this:
<!-- simple marquee text -->
<marquee-text>
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.
</marquee-text>
<!-- short text need more duplicates -->
<marquee-text :repeat="10">
Short text =(
</marquee-text>
<!-- slow duration -->
<marquee-text :duration="30">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna.
</marquee-text>
Prop | Type | Default | Description |
---|---|---|---|
duration | Number | 15 | Animation Duration |
repeat | Number | 2 | Number of repeat the Slot (It's important for to short content) |
paused | Boolean | false | The property specifies whether the animation is running or paused |
reverse | Boolean | false | Set animation-direction to reverse |
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 -->
<marquee-text :key="currentTrack.id">
{{ currentTrack.title }}
</marquee-text>
yarn install
yarn run serve
yarn run build
yarn run lint
FAQs
[CSS GPU Animation] Marquee Text for vuejs
The npm package vue-marquee-text-component receives a total of 3,574 weekly downloads. As such, vue-marquee-text-component popularity was classified as popular.
We found that vue-marquee-text-component 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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.