0.0.6 • Published 8 months ago

cap-vmarquee-nuxt3 v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Cap-VMarquee-Nuxt3

Cap VMarquee Nuxt3 is Marquee component similar to Deprecated marquee html tag for Nuxt 3 FrameWork.

npm version npm downloads License Nuxt

About

The Cap VMarquee Nuxt3 is an open-source library developed and maintained by CAP Company. It is developed using Nuxt 3 framework and tailwindcss.

Showcase

Quick Setup

  1. Add Cap-VMarquee-Nuxt3 dependency to your project .

Using yarn :

yarn add Cap-VMarquee-Nuxt3

Using npm :

npm install Cap-VMarquee-Nuxt3

Using pnpm :

pnpm add Cap-VMarquee-Nuxt3
  1. Add cap-vmarquee-nuxt3 to the modules of nuxt.config.ts
export default defineNuxtConfig({
  modules: ['cap-vmarquee-nuxt3']
});

That's it! You can now use library in your Nuxt app ✨

How to Use

Using the marquee is easy, you just need to import the library and use it as follows.

<VMarquee/>

Props

KeyTypeDefaultDescriptionsample
durationstring \| number3defines how long an animation takes to complete2
delaystring \| number0sets the time before an animation starts.1
directionTDirectionnormalspecifies the direction the animation will play.normal
timingFunctionTTimingFunctionlinearcontrols the speed curve of an animation.linear

Types

type TDirection = "normal" | "reverse"

type TTimingFunction = "ease" | "linear" | "ease-in" | "ease-out" | "ease-in-out"

Full Sample Code

<VMarquee
  :duration="5"
  :delay="0"
  direction="normal"
  timing-function="ease-in-out"
>
  <h1>Mohammad Rouhani</h1>
</VMarquee>

Thank You

Thanks to all colleagues of CAP Company

Author : Mohammad Rouhani

Thank you my Colleague:

https://github.com/Ghanavati7915