基于Angular8.0的滚动插件
// 注入模块
import { NpxMarqueeSuperModule } from 'npx-marquee-super';
imports: [
NpxMarqueeSuperModule
],
// 组件中调用
<lib-npx-marquee-super [speed]="100" [direction]="'left'">
</lib-npx-marquee-super>
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
speed |
速度 | number |
- |
direction |
方向 | left |
- |
#License MIT License