Skip to content
Snippets Groups Projects
Commit 0cd595fd authored by Štěpán Farka's avatar Štěpán Farka
Browse files

[ADD] sliding text

parent 59c2b343
No related branches found
No related tags found
2 merge requests!607Pirati.cz,!575Feature/pirati cz
Pipeline #9285 failed
...@@ -171,23 +171,41 @@ p { ...@@ -171,23 +171,41 @@ p {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
position: relative; position: relative;
.slick-slide { h1 {
overflow: hidden; @apply text-7xl;
clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%); position: absolute;
top: 40%;
left: 10%;
max-width: 850px;
} }
img { img {
clip-path: polygon(0 0, 100% 0, 100% 90%, 0% 100%);
bottom: 0; bottom: 0;
top: 0; top: 0;
left: 0; left: 0;
right: 0; right: 0;
width: 100%; width: 100%;
transition: all 500ms ease-in-out; transition: all 800ms ease-in-out;
transform: scale(1.25, 1.25); transform: scale(1.15, 1.15);
} }
.slick-active { .slick-active {
img { img {
transform: scale(1, 1); transform: scale(1, 1);
} }
h1 {
animation: right_to_left 500ms ease;
}
}
@keyframes right_to_left {
from {
left: 15%;
}
to {
left: 10%;
}
} }
.slick-arrow { .slick-arrow {
......
<template> <template>
<div class="header-carousel"> <div class="header-carousel">
<vue-slick-carousel v-bind="settings"> <vue-slick-carousel v-bind="settings">
<div class="xl:h-screen"> <div class="xl:h-screen relative">
<img src="https://unsplash.it/792/387?image=4" draggable="false"> <img src="https://unsplash.it/792/387?image=4" draggable="false">
<h1>72% domácností bylo násilně digitalizováno</h1>
</div> </div>
<div class="xl:h-screen"> <div class="xl:h-screen relative">
<img src="https://unsplash.it/792/387?image=1" draggable="false"> <img src="https://unsplash.it/792/387?image=4" draggable="false">
<h1>72% domácností bylo násilně digitalizováno</h1>
</div> </div>
<div class="xl:h-screen"> <div class="xl:h-screen relative">
<img src="https://unsplash.it/792/387?image=2" draggable="false"> <img src="https://unsplash.it/792/387?image=4" draggable="false">
<h1>72% domácností bylo násilně digitalizováno</h1>
</div> </div>
<!-- <div class="homepage-item" style="background: url('https://placeimg.com/1920/1080/any?1') no-repeat center / cover">--> <!-- <div class="homepage-item" style="background: url('https://placeimg.com/1920/1080/any?1') no-repeat center / cover">-->
<!-- <div class="container">--> <!-- <div class="container">-->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment