summaryrefslogtreecommitdiff
path: root/src/scss/flash-card.scss
blob: 5ba4ce99559f21ce42acf8ad1cd06d30ece6f68a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.flash-card {
  background-color: transparent;
  width: 100%;
  height: 200px;
  perspective: 1000px;
}

.flash-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.5s;
  transform-style: preserve-3d;
}

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

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

.flash-card-front {
  border-radius: $box-radius;
  line-height: 150px;
}

.flash-card-back {
  border-radius: $box-radius;
  transform: rotateY(180deg);
}