Add "deal" animation
This commit is contained in:
parent
aa070c9240
commit
1a0dce9d85
|
@ -1,3 +1,13 @@
|
|||
body {
|
||||
color: green;
|
||||
@keyframes deal-card {
|
||||
from {
|
||||
transform: translateY(300vh);
|
||||
}
|
||||
|
||||
to {
|
||||
transform: translateY(0);
|
||||
}
|
||||
}
|
||||
|
||||
.tarot-card--deal {
|
||||
animation: deal-card 1s both;
|
||||
}
|
||||
|
|
|
@ -6,6 +6,8 @@
|
|||
body {
|
||||
height: 100vh;
|
||||
background: #000056;
|
||||
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.center-grid {
|
||||
|
@ -35,7 +37,7 @@
|
|||
</div>
|
||||
|
||||
<!-- Identical to The Simple Card, but uses the "deal" animation to slide in when the page is loaded. -->
|
||||
<div id="deal-card" class="tarot-card">
|
||||
<div id="deal-card" class="tarot-card tarot-card--deal">
|
||||
<div class="tarot-card__section tarot-card__section--art">
|
||||
<img class="tarot-card__art" src="images/card_art_std.jpg" alt="The Deal Card artwork image." title="The Simple Card artwork image.">
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue