Giter VIP home page Giter VIP logo

marquee's Introduction

Marquee
🌬️

A beautiful marquee component for Vue ✨.

Installation

npm install @selemondev/vue3-marquee

or you can skip npm install, and just copy and paste the source code into your component like Shadcn Vue (don't forget to also copy the tailwind config if you do this).

Register it as a global component

import { Marquee } from "@selemondev/vue3-marquee";
import "@selemondev/vue3-marquee/dist/style.css"
import { createApp } from 'vue'
import App from './App.vue'

const app = createApp(App);
app.component('Marquee', Marquee)
app.mount('#app')

or

Register it as a local component

import { Marquee } from "@selemondev/vue3-marquee";
import "@selemondev/vue3-marquee/dist/style.css"

Nuxt

If you are using Nuxt 3, you can simply register it as a Nuxt plugin as shown below:

// plugins/marquee.ts

import { Marquee } from "@selemondev/vue3-marquee";
import "@selemondev/vue3-marquee/dist/style.css"
export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.vueApp.component('Marquee', Marquee)
})

Usage

The library has a few props that are self-explanatory, you can get it running in no time. See the web examples for more details.

<Marquee
  :fade="true"
  direction="left"
  :reverse="false"
  :pauseOnHover="false"
  className="" // pass class to change gap or speed
  innerClassName="" // pass class to change gap or speed
>
  <div>Content 1</div>
  <div>Content 2</div>
  <div>Content 3</div>
  <div>Content 4</div>
</Marquee>

This library is made specifically for Tailwind users, however you can also use vanilla CSS classes to override the gap.

Credits

License

Released under MIT by @selemondev.

marquee's People

Contributors

selemondev avatar jianjroh avatar

Stargazers

Manthankumar Satani avatar Brooke Schreier Ganz avatar Ozabra avatar Dmitry Zhebrak avatar  avatar Samuel Seo avatar Leon avatar Leo Cao avatar Vanweiping avatar  avatar cn-2k avatar Ron Hedwig Zape avatar Guany avatar Fran avatar John Philip avatar Mohammad Soleimanian avatar Ashok Gelal avatar Juan Boada avatar Helder Cambuta avatar Mortexa avatar Brahim avatar Emmanuel Salomon avatar Eduardo Diaz Ugarte avatar Marian Klühspies avatar  avatar Andrey Zhuk avatar  avatar Jenuel Oras Ganawed avatar Alfredo Martínez avatar Vlad Faust avatar Zakaria AKTOUF avatar Luke Nelson avatar Vamsi Madduluri avatar Alex avatar Andy Willekens avatar Matthias A. avatar xx avatar Charles Chen avatar Roland Szpond avatar Eric Irish avatar ish avatar Ghassan Fs avatar Naim Ahmed Shuvo avatar GZ avatar Titus Decali avatar Joe DeMatteo avatar EvanSky avatar Tim Pulver avatar Dominik Pschenitschni avatar Whipstickgostop avatar Takumi Motoki avatar Mohamed Suhaib avatar Marco Land avatar James Benner avatar Pierre Chalamet avatar Alexander Gekov avatar Emmanuel Nwafor  avatar Adam Menczykowski avatar Seamus Walsh avatar Adarsh DK avatar Bartosz Podlewski avatar Prodromos Pantos avatar Arturo Armando González Fernández avatar  avatar Therence FERRON avatar Yusuf Olosan avatar Mateleo avatar  avatar Berk Altıok avatar Marco Cestari avatar Raí Siqueira avatar Sunday Ibrahim Ijai avatar Slava avatar Mr. Nasıl avatar Dominic Marcelino avatar Joseph Wakahu Ngacha avatar The Coding Montana avatar Leopoldo Miranda avatar Muhammad Ubaid Raza avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.