scrimba
Note at 1:08
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Note at 1:08
AboutCommentsNotes
Note at 1:08
Expand for more info
index.css
run
preview
console
body, html { 
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

:root {
--jeopardy-blue: #060CE9;
--font-color-main: #fff;
}

.card{
perspective: 1000px;
background-color: transparent;
width: 400px;
height: 250px;
}

.card h2{
text-transform: uppercase;
color: var(--font-color-main);
padding: 20px
}

.card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.6s;
transform-style: preserve-3d;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
background-color: var(--jeopardy-blue);
border-radius: 10px;
}

.card:hover .card-inner {
transform: rotateY(180deg);
}

.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}

.card-front, .card-back{
display: flex;
align-items: center;
}

.card-back{
justify-content: center;
transform: rotateY(180deg);
}
Console
/index.html
LIVE