Customisable SVG based Playing Card graphics
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
git clone https://github.com/listingslab/react-playing-cards.git
cd react-playing-cards
yarn && yarn start
/Cards
directory and paste it anywhere you need in your appyarn 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__