A framework for creating responsive animated SVG graphics in react implemented as a deck of playing cards. It has no need for jQuery or bitmap graphics. It's lightweight and easily deployable within any JS project
- Animated with Greensock
- Newfangled SVG graphic system; no bitmaps
- Material UI desgin system
git clone https://github.com/listingslab/react-playing-cards.git
cd react-playing-cards
yarn && yarn start
- Copy
/Cards
directory and paste it anywhere you need in your app - Install the Greensock animation package
yarn add gsap
-
Copy
/Cards
directory from react-playing-cards -
Import & Use in an existing component
import { CardSingle } from '<path>/Cards'
<CardSingle
id={`S_A`}
card={ {
suit: `S`,
rank: `A`,
backColor: `#1A1919`,
color: item.suit === 'D' || item.suit === 'H' ? `#D33E43` : `#1A1919`
} }
/>
™ should __just work__