Elm-Card-Game is a package for displaying card games. Checkout the guide and the demo project.
div nodes that take use of Flexbox.Html.Keyed to allow for transitions between states.elm install Orasund/elm-card-gameThe mechanics behind this package are actually quite boring. No wizardry was used.
Please feel free to look at the source code. We tried to make the code as understandable as possible.
While developing this package we sticked to the following rules:
height and aspect-ratio instead of using weight.rgba(0, 0, 0, 0.2) as a placeholder for color.