snettah / react-ztext

Ztextjs implementation in React
48 stars 2 forks source link

react-ztext

Ztext.js implementation in React

NPM JavaScript Style Guide

Demo

CodeSandbox

Install

npm install --save react-ztext
yarn add react-ztext

Usage

import React from 'react'
import Ztext from 'react-ztext'

const Example = () => (
  <Ztext
    depth='1rem'
    direction='both'
    event='pointer'
    eventRotation='30deg'
    eventDirection='default'
    fade={false}
    layers={10}
    perspective='500px'
    style={{
      fontSize: '4rem'
    }}
  >
    <span role='img' aria-label='emoji'>
      😂🔥🍔
    </span>
  </Ztext>
)

ZText.js Documentation

License

MIT © snettah