.home-carousel
position: relative
- height: 798px //87vh
- //padding-bottom: 42.25%
+ height: 798px
overflow: hidden
+screen-size(small-desktop, 'max')
display: none
&.prev
.leftside
height: 0
+ .rightside .overlay
+ height: 0
&.next
z-index: 1
&.active
height: 100%
z-index: 2
- [class*="side"]
- .overlay,
- .thumbnail
- height: 100%
-
- .thumbnail
- position: relative
-
- .text
- opacity: 1
- transition: opacity 750ms cubic-bezier(0.77, 0, 0.175, 1) 0s, top 1s
- top: 0
.leftside,
.rightside
.overlay
width: calc(100% + ((100vw - 1344px) / 2) )
+ height: 100%
+screen-size('desktop', 'max')
width: 100%
position: absolute
left: 0
+ top: 0
transition: all .9s cubic-bezier(.7, 0, .2, 1)
img
object-fit: cover
left: var(--left)
transition: all 1s
+ .rightside.active
+ .thumbnail
+ position: relative
+
+ .text
+ opacity: 1
+ top: 0
+
&.active
.thumbnail
img
-
transition: all 1s
bottom: calc(var(--bottom) - 39px)
padding-bottom: 137px
padding-left: calc(8.66% * 2)
position: relative
- transition: opacity 750ms cubic-bezier(0.77, 0, 0.175, 1) 0s, top 1s
+ transition: opacity .5s cubic-bezier(0.77, 0, 0.175, 1) 0s
opacity: 0
- top: 50px
*
color: #ffffff
p
margin-bottom: 30px
font-size: var(--step-3) !important
+ &.active
+ .text
+ opacity: 1
+ animation-name: fade-in
+ animation-duration: 1s
+ animation-timing-function: ease-in-out
+
+ &:not(.active)
+ .text
+ animation-name: fade-out
+ animation-duration: 1s
+ animation-timing-function: ease-in-out
&.next
.leftside
bottom: 0
- &:not(.active)
- .text
- animation-name: anime
- animation-duration: .8s
- animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1)
-@keyframes anime
+@keyframes fade-out
0%
- top: 0
+ transform: translateY(0)
50%
- top: -1.25vw
+ transform: translateY(-40px)
+ 100%
+ transform: translateY(40px)
+
+@keyframes fade-in
+ 0%
+ transform: translateY(40px)
100%
- top: 1.25vw
+ transform: translateY(0)
@keyframes anime-thumb
0%