【文件属性】:
文件名称:title-marquee:滚动标题栏中的文字♫ ♪
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-04 14:43:18
JavaScript
标题marquee.js
滚动浏览器标题中的文字♫ ♪
安装
npm install title-marquee
或者克隆这个 repo。
用法
此插件遵循 CommonJS 规范,因此您可以使用 browserify 或类似工具在浏览器上捆绑并要求它。
< script >
var tm = require('title-marquee');
// Scroll text
tm('Get Low - Lil Jon and the Eastside Boyz');
// Scroll in reverse
tm( { text : 'Someone Like You - Adele' , type : 'reverse' } );
// Scroll left and right
tm( { text : 'Cool Kids - Echosmith' , type : 'bou
【文件预览】:
title-marquee-master
----lib()
--------title-marquee.js(2KB)
----README.md(2KB)
----.gitignore(27B)
----index.js(49B)
----package.json(338B)