Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue3-lottie

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue3-lottie

[![npm](https://img.shields.io/npm/v/vue3-lottie)](https://www.npmjs.com/package/vue3-lottie) [![Downloads](https://img.shields.io/npm/dt/vue3-lottie)](https://www.npmjs.com/package/vue3-lottie) [![Stars](https://img.shields.io/github/stars/megasanjay/vue

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vue3-marquee

npm Downloads Stars License GitHub issues

A simple lottie component with ZERO dependencies for Vue 3. This component was originally developed for internal use but I figured this could be useful to someone else as well. This component is modeled after a React lottie component I found called React Fast lottie. To keep a smooth animation running, clones of the content can be created for seamless transitions with no sudden jarring appearences or empty spaces in between content.

Warning

The latest version of vue3-lottie is in the experimental stage. I'm looking for users with typescript applications to verify the use of this library before I update the version numbers.

Demos

View the live demos here: https://vue3-lottie.vercel.app/examples.html

Installation

If you are using npm:

npm install vue3-lottie

If you are using yarn:

yarn add vue3-lottie

Usage

The most common use case is to register the component globally.

// main.js
import { createApp } from "vue";
import Vue3Marquee from "vue3-lottie";

createApp(App).use(Vue3Marquee).mount("#app");

Alternatively you can import the marquee component locally.

import Vue3Marquee from "vue3-marquee";

export default {
  components: {
    Vue3Marquee,
  },
};

You can then use the component in your template. A common use case is an image marquee for logos but you can also use it for scrolling text.

<vue3-marquee>
  <img height="200" width="300" src="...img" />
  <img height="200" width="300" src="...img" />
  <img height="200" width="300" src="...img" />
</vue3-marquee>

Props and options

PropTypeDefault ValueDescription
directionString of either 'normal' or 'reverse'"normal"The direction for the content to move in
durationNumber20The time taken for the marquee content to move the width of the container (in seconds)
delayNumber0A delay before the animation starts (in seconds)
loopNumber0The number of instances that the marquee animation should run (0 is infinite)
gradientBooleanfalseWhether to show a gradient overlay
gradientColorArray of 3 RGB values[255, 255, 255]The RGB colors for the color of the gradient
gradientWidthString200pxLength of portion of the container edges that should be taken by the gradient overlay
pauseOnHoverBooleanfalseWhether to pause the marquee on hover
pauseOnClickBooleanfalseWhether to pause the marquee when you hold the right click button
cloneBooleanfalseWhether to clone the content if you want no empty spaces in the animation

forthebadge forthebadge

Keywords

FAQs

Package last updated on 17 Jan 2022

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc