Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
0cd595fd
Commit
0cd595fd
authored
Aug 20, 2022
by
Štěpán Farka
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] sliding text
parent
59c2b343
No related branches found
No related tags found
2 merge requests
!607
Pirati.cz
,
!575
Feature/pirati cz
Pipeline
#9285
failed
Aug 20, 2022
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/styleguide/source/css/atoms/heading.pcss
+23
-5
23 additions, 5 deletions
main/styleguide/source/css/atoms/heading.pcss
main/styleguide/source/js/components/header/HeaderCarousel.vue
+8
-5
8 additions, 5 deletions
...styleguide/source/js/components/header/HeaderCarousel.vue
with
31 additions
and
10 deletions
main/styleguide/source/css/atoms/heading.pcss
+
23
−
5
View file @
0cd595fd
...
@@ -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
5
00ms ease-in-out;
transition: all
8
00ms ease-in-out;
transform: scale(1.
2
5, 1.
2
5);
transform: scale(1.
1
5, 1.
1
5);
}
}
.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 {
...
...
This diff is collapsed.
Click to expand it.
main/styleguide/source/js/components/header/HeaderCarousel.vue
+
8
−
5
View file @
0cd595fd
<
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"
>
-->
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment