Skip to content

Instantly share code, notes, and snippets.

@choonkending
Created May 24, 2016 14:01
Show Gist options
  • Save choonkending/b3b44f079113784be3cf82b8fb6a47ce to your computer and use it in GitHub Desktop.
Save choonkending/b3b44f079113784be3cf82b8fb6a47ce to your computer and use it in GitHub Desktop.
const wrapFadeInLetters = text =>
text.split('').map((letter, i) => <span className='simple-button__letters' key={i} style={{transition: `opacity 800ms ${i * 50}ms`}}>{letter}</span>);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment