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

auto-marquee

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-marquee

displays text for a short time, and auto uses marquee for a long time

  • 1.1.1
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

AutoMarquee

安装

npm i auto-marquee

描述

文本未充满容器时,展示文本;文本超出容器时,自动进行跑马灯展示

参数选项

参数类型默认值描述
valueString空字符串线上文件的url
typeStringautoauto : 文本过长时自动进行跑马灯效果
hover: 鼠标悬浮时,过长的文本才进行跑马灯效果
timeString/Number10s为animation-duration的值,数值越大,文字速度越慢
bgString#fff背景色,如果项目有主题切换功能,需要考虑为 bg 动态赋值

示例

点击查看 线上演示.

项目地址

  • github

支持

vue2 vue3

使用

<script setup>
import {reactive} from "vue";
import AutoMarquee from 'auto-marquee';

const state = reactive({
  text:'计算机语言',
});
</script>

<template>
    <auto-marquee :value="state.text"></auto-marquee>
</template>

Keywords

FAQs

Package last updated on 01 Jul 2024

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