Skip to content

Commit 39978b9

Browse files
Update style.css
1 parent 5dd6128 commit 39978b9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

project-9-dice-roll-simulator/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ h1 {
1212
.dice {
1313
font-size: 6rem;
1414
margin: 10px;
15+
animation-duration: 1s;
16+
animation-fill-mode: forwards;
17+
}
18+
19+
.roll-animation {
20+
animation-name: roll;
21+
}
22+
23+
@keyframes roll {
24+
0% {
25+
transform: rotateY(0deg) rotateX(0deg);
26+
}
27+
100% {
28+
transform: rotateY(720deg) rotateX(720deg);
29+
}
1530
}
1631

1732
button {

0 commit comments

Comments
 (0)