mirror of
https://github.com/yusufipk/natours-react.git
synced 2026-09-11 19:16:11 +00:00
created card component and tours section
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user