created card component and tours section

This commit is contained in:
Yusuf Ipek
2021-05-02 13:34:49 +03:00
parent 12ab9e618c
commit 741b44c5d1
8 changed files with 90 additions and 3 deletions
+43
View File
@@ -0,0 +1,43 @@
.card {
perspective: 150rem;
position: relative;
height: 50rem;
&__side {
font-size: 2rem;
height: 50rem;
transition: all 0.58s ease;
position: absolute;
top: 0;
left: 0;
width: 100%;
backface-visibility: hidden;
border-radius: 3px;
box-shadow: $shadow-default;
&--front {
background-color: $color-white;
}
&--back {
transform: rotateY(180deg);
&-1 {
background-image: linear-gradient(
to right bottom,
$color-secondary-light,
$color-secondary-dark
);
}
}
}
&:hover &__side--front {
transform: rotateY(180deg);
}
&:hover &__side--back {
transform: rotateY(0deg);
}
}