Skip to content

richardfrangie/52-card-deck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Standard 52-Card Deck

HTML HTML

This is a small learning project that render a standard 52-card deck using only HTML and CSS. It’s designed to be reuse as a web-component and, eventually, to build a solitaire game.

screenshots/52card-deck.png

Demo

Live demo →

What it covers

  • Pure HTML & CSS
  • Responsive card layouts
  • Flexbox and CSS Grid for layout
  • Positioning and stacking contexts
  • Transforms and transitions for simple animations

Some techniques are intentionally over-engineered or implemented in multiple ways for practical purposes.

Known limitations

When a card rotates via the active animation, the back face does not display. Attempts to fix this caused layout and behavioral issues, so it remains as a known limitation for now.

Tested on Chromium and Firefox

References

About

Learning project that render a standard 52-card deck using only HTML and CSS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors