You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.6 KiB

@import "../../assets/scss/variables";
.component-portfolio {
5 years ago
padding-top: 100px;
.box {
5 years ago
position: relative;
display: flex;
background: $black;
border-radius: 10px;
overflow: hidden;
margin: 40px;
padding: 20px;
cursor: pointer;
transition: transform .4s;
.image {
position: absolute;
top: 50%;
left: 50%;
height: 100%;
width: 100%;
object-fit: cover;
transform: translate(-50%, -50%);
transition: transform .4s;
opacity: .5;
z-index: 0;
}
.text {
display: block;
margin: auto;
text-align: center;
transform: translate(0%, 0%);
z-index: 1;
.title {
display: block;
color: $white;
font-size: $font-24;
text-transform: uppercase;
font-weight: bold;
}
.type {
display: block;
color: $white;
font-size: $font-18;
font-weight: bold;
}
.tags {
display: block;
color: $white;
font-size: $font-14;
text-transform: uppercase;
font-weight: bold;
padding-top: 20px;
}
}
@each $angle in 0,1,2,3,4,5,6 {
&.skew-#{$angle} {transform: skew(#{$angle - 3}deg, #{$angle - 3}deg) ;}
}
5 years ago
&:hover {
//transform: scale(1.4) skew(2deg, 2deg) rotate(2deg);
@each $angle in 0,1,2,3,4,5,6 {
&.skew-#{$angle} {transform: scale(1.4) rotate(2deg) skew(#{3 - $angle}deg, #{3 - $angle}deg) ;}
}
.image {
transform: translate(-50%, -50%) scale(1.4);
}
}
}
}