All Projects → adrianmcli → React Reveal Text

adrianmcli / React Reveal Text

✨ A small react library for animating the revealing of text.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Reveal Text

Css Animation 101 Cn
学习如何为你的 Web 程序添加动效
Stars: ✭ 132 (-22.81%)
Mutual labels:  transition, style
Aisphereview
A wonderful 3D animation
Stars: ✭ 160 (-6.43%)
Mutual labels:  transition
Transitionhelper
This is a simple util to create Activity transition animation
Stars: ✭ 1,653 (+866.67%)
Mutual labels:  transition
Cljstyle
A tool for formatting Clojure code
Stars: ✭ 148 (-13.45%)
Mutual labels:  style
Gganimate
A Grammar of Animated Graphics
Stars: ✭ 1,744 (+919.88%)
Mutual labels:  transition
Neural Tools
Tools made for usage alongside artistic style transfer projects
Stars: ✭ 150 (-12.28%)
Mutual labels:  style
Beautyhour
With this software, you can do all kinds of Personalised Customize and beautifying to your photos.
Stars: ✭ 132 (-22.81%)
Mutual labels:  effect
Materialtransitionanimation
Material Animations practice which is inspired from
Stars: ✭ 165 (-3.51%)
Mutual labels:  transition
Yii2 Workflow
A simple workflow engine for Yii2
Stars: ✭ 157 (-8.19%)
Mutual labels:  transition
Pep8 Git Hook
Git pre-commit hook that checks for Python PEP8 style compliance.
Stars: ✭ 143 (-16.37%)
Mutual labels:  style
Androidcamera
🔥🔥🔥自定义Android相机(仿抖音 TikTok),其中功能包括视频人脸识别贴纸,美颜,分段录制,视频裁剪,视频帧处理,获取视频关键帧,视频旋转,添加滤镜,添加水印,合成Gif到视频,文字转视频,图片转视频,音视频合成,音频变声处理,SoundTouch,Fmod音频处理。 Android camera(imitation Tik Tok), which includes video editor,audio editor,video face recognition stickers, segment recording,video cropping, video frame processing, get the first video frame, key frame, v…
Stars: ✭ 2,112 (+1135.09%)
Mutual labels:  effect
Expo Dark Mode Switch
A beautiful React dark mode switch component for iOS, Android, and Web
Stars: ✭ 137 (-19.88%)
Mutual labels:  style
Layerjs
layerJS: Javascript UI composition framework
Stars: ✭ 1,825 (+967.25%)
Mutual labels:  transition
Pt Three Ways
Path tracing, done three ways
Stars: ✭ 135 (-21.05%)
Mutual labels:  style
Starwars.android
This component implements transition animation to crumble view into tiny pieces.
Stars: ✭ 1,942 (+1035.67%)
Mutual labels:  transition
Pettier
Prettier config that randomizes options and arbitrarily switches between spaces and tabs 🙄
Stars: ✭ 149 (-12.87%)
Mutual labels:  style
Baffle
A tiny javascript library for obfuscating and revealing text in DOM elements. 😲
Stars: ✭ 1,721 (+906.43%)
Mutual labels:  effect
Phaser State Transition
State transition plugin for Phaser.js
Stars: ✭ 169 (-1.17%)
Mutual labels:  transition
Computestochasticreflections
Compute Stochastic Screen Space Reflections for unity post processing
Stars: ✭ 163 (-4.68%)
Mutual labels:  effect
Kwdrawercontroller
Drawer view controller that easy to use!
Stars: ✭ 154 (-9.94%)
Mutual labels:  transition

React Reveal Text

npm dependencies travis bithound license

A small react library for animating the revealing of text.

gif animation

Demo/Tutorial available here: https://adrianmcli.github.io/react-reveal-text/

The demo page was built with React Storybook.

Features 🎉

  • Simple – Just plain ol' CSS transition animations.
  • Zero dependencies – Keeping it light and lit up!
  • Flexible – Choose your own easing function and timing.
  • Customizable – Customize and theme like a regular div.
  • Dynamic – Intelligent generation of random transition delay numbers.

Getting Started

  1. Install:
npm install --save react-reveal-text
  1. Use:
<ReactRevealText>WELCOME!</ReactRevealText>

API

Interactive docs with live-editable props here.

This component has many props that you can manipulate; below is a list of all of them.

Note that the component only re-renders when the show property has been changed.

Basic Properties

  • text (string)
    You can set the text either by passing in text as children or by using the text property.

  • show (boolean)
    This prop allows you to control what state the component is in. It allows you to hide or reveal the text.

  • className (string)
    This prop allows you to set the className for the div surrounding the text.

  • style (object)
    This prop allows you to pass in styles for the div surrounding the text.

Transition Properties

Each letter has its own randomly generated delay before its transition begins.

  • transitionTime (integer) [default: 1300]
    The time it takes for each letter's transition.

  • timingFunction (string) [default: 'linear']
    The CSS transition-timing-function property. On this page, you are given a dropdown selection, but in practice (and in the sandbox), you can enter in any valid string.

  • delayMin (integer) [default: 200]
    The minimum allowable delay before the transition for a letter is to begin.

  • delayMax (integer) [default: 1200]
    The maximum allowable delay before the transition for a letter is to begin.

  • threshold (float) [default: 0.2]
    The difference between the random numbers generated for each letter compared to the previous letter. Setting this higher will force the delays to be very different between each letter, spreading out the effect. Setting this lower will allow delays to be similar between letters, sometimes creating a chunking effect.

Contributing

This project was built using my two other tools: React Build Lib and React Build Dist. These tools are still very early in development, so if you are building these libraries, you may encounter some bugs. PRs and issues are welcomed and encouraged! Should probably add some testing too.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].