1.0.0 • Published 3 years ago

react-scroll-log-text v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

NPM JavaScript Style Guide

react-scroll-log-text

React js text scroll plug-in, push a new data, scroll once.

文档

Install

yarn add react-scroll-log-text // or npm install --save react-scroll-log-text

Usage

import React, { Component } from 'react'

import MyComponent from 'react-scroll-log-text'
import 'react-scroll-log-text/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

Props

namedesctypedefault
datadataArray or Object[]
animateSpeedAnimation scroll transition time, unit: secondNumber1
lengthData larger than 'length' starts to scrollNumber5
liStyleThe sytle of the li label (the pixel must be added with the unit px)Object
childrenFcCustom rendering item components, such as when data is multiple fieldsfunction

example

License

MIT © rfw