Skip to content

Commit

Permalink
Merge pull request #45 from acend/changes
Browse files Browse the repository at this point in the history
marquee
  • Loading branch information
fintinc authored Sep 23, 2024
2 parents 6894311 + 25d2561 commit 581d130
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 4 deletions.
1 change: 1 addition & 0 deletions site/assets/scss/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@import "components/accordions";
@import "components/animations";
@import "components/headroom";
@import "components/ticker-text";

@import "layouts/home";
@import "layouts/about";
Expand Down
2 changes: 1 addition & 1 deletion site/assets/scss/common/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ a {
.title-huge {
font-family: "TTFirsNeue-Medium", sans-serif;
font-size: 15.2rem;
line-height: 1;
line-height: 1.05;
white-space: nowrap;
overflow: hidden;
-webkit-text-fill-color: transparent;
Expand Down
55 changes: 55 additions & 0 deletions site/assets/scss/components/_ticker-text.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
/*
.ticker {
overflow: hidden;
font-family: var(--font);
font-weight: 500;
font-size: 3rem;
line-height: 1;
@include media-breakpoint-down(sm) {
font-size: 2rem;
}
.inner {
position: relative;
width: 100%;
display: flex;
color: white;
font-size: 8rem;
> * {
white-space: nowrap;
padding-right: 0.5em;
}
}
}
*/

.marquee {
--offset: 20vw;
--move-initial: calc(-25% + var(--offset));
--move-final: calc(-50% + var(--offset));
}

.marquee__inner {
width: fit-content;
display: flex;
position: relative;
transform: translate3d(var(--move-initial), 0, 0);
animation: marquee 15s linear infinite;

div {
padding-right: 0.25em;
}
}


@keyframes marquee {
0% {
transform: translate3d(var(--move-initial), 0, 0);
}

100% {
transform: translate3d(var(--move-final), 0, 0);
}
}
4 changes: 4 additions & 0 deletions site/hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
"contain",
"container",
"container-fluid",
"container-fluid_",
"container-kubernetes",
"container-openshift",
"content",
Expand Down Expand Up @@ -262,6 +263,8 @@
"list",
"logo",
"m-0",
"marquee",
"marquee__inner",
"mb-0",
"mb-10",
"mb-16",
Expand Down Expand Up @@ -456,6 +459,7 @@
"row-cols-lg-4",
"row-cols-md-2",
"scrollmove",
"scrollmove_",
"section",
"section-about",
"serverless",
Expand Down
15 changes: 12 additions & 3 deletions site/layouts/trainings/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@

<section data-sticky-container class="section mb-5">

<div class="title-huge overflow-hidden">
<div class="container-fluid">
<div class="scrollmove">
<div class="title-huge overflow-hidden marquee position-relative">
<div class="container-fluid_ marquee__inner">
<div class="scrollmove_">
{{ .Title }}
</div>
<div class="scrollmove_">
{{ .Title }}
</div>
<div class="scrollmove_">
{{ .Title }}
</div>
<div class="scrollmove_">
{{ .Title }}
</div>
</div>
Expand Down

0 comments on commit 581d130

Please sign in to comment.