Skip to content

Commit b8989b2

Browse files
committed
disable hover effect on touchscreen device
1 parent 900b259 commit b8989b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

style.css

+12
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,18 @@ h1 {
102102
transition-delay: .2s;
103103
}
104104

105+
/* Handle card flip behavior on touch-screen */
106+
@media(hover: none) {
107+
.cardContainer:hover .card {
108+
transform: none;
109+
transition: none;
110+
}
111+
112+
.back {
113+
visibility: hidden;
114+
}
115+
}
116+
105117
.types {
106118
display: flex;
107119
}

0 commit comments

Comments
 (0)