New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rc-texty

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-texty

text animate component for react

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
706
increased by34.22%
Maintainers
1
Weekly downloads
 
Created
Source

rc-texty


React TextyAnim Component

NPM version build status codecov npm download

Example

http://localhost:8010/examples/

online example: http://react-component.github.io/texty/

install

rc-texty

Usage

var TextyAnim = require('rc-texty');
var React = require('react');
React.render(<TextyAnim>text</TextyAnim>, container);

API

props

nametypedefaultdescription
classNamestringnullclass name.
prefixClsstringtextyprefix class
typestringtopanimation style, 'left' | 'right' | 'top' | 'bottom' |'alpha' | 'scale' | 'scaleX' | 'scaleBig' | 'scaleY' | 'mask-bottom' | 'mask-top' | 'flash' | 'bounce' | 'swing' | 'swing-y' | 'swing-rotate'.
modestringsmoothanimate sport mode. 'smooth' | 'reverse' | 'random' | 'sync'
durationnumber | func450Except for special animation 'flash' | 'bounce' | 'swing' | 'swing-y' | 'swing-rotate'. one text animation duration
intervalnumber | func50animation interval, is function: (e: { key: string }) => number. Key is split text plus sequence(text-1).
delaynumber0animation overall delay.
splitfuncnullchildren split, return string

Inherit TweenOneGroup

nametypedefaultdescription
appearbooleantruewhether support appear anim
enterobject / array / funcnullenter anim twee-one data. when array is tween-one timeline, func refer to queue-anim
leaveobject / array / funcnullleave anim twee-one data. when array is tween-one timeline, func refer to queue-anim
onEndfunc-one animation end callback
animatingClassNamearray['tween-one-entering', 'tween-one-leaving']className to every element of animating
exclusivebooleanfalseWhether to allow a new animate to execute immediately when switching. enter => leave: execute immediately leave
componentReact.Element/Stringdivcomponent tag
componentPropsobject-component tag props

License

rc-texty is released under the MIT license.

Keywords

FAQs

Package last updated on 06 Sep 2018

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