styles.css
Aus Infopedia
Zeile 33: | Zeile 33: | ||
.flip-card-back { | .flip-card-back { | ||
− | background-color: # | + | background-color: #818A91; |
color: white; | color: white; | ||
transform: rotateY(-180deg); | transform: rotateY(-180deg); | ||
} | } |
Version vom 4. März 2021, 08:55 Uhr
.flip-card { background-color: transparent; width: 250px; height: 250px; perspective: 1000px; } .flip-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); } .flip-card:hover .flip-card-inner { transform: rotateY(-180deg); } .flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; } .flip-card-front { background-color: #bbb; color: black; } .flip-card-back { background-color: #818A91; color: white; transform: rotateY(-180deg); }