feat/css-cleanup #2

Merged
millironx merged 41 commits from feat/css-cleanup into master 2024-12-02 02:51:14 +00:00
3 changed files with 2 additions and 11 deletions
Showing only changes of commit 1a6519fafb - Show all commits

View file

@ -1,5 +1,5 @@
$(window).on("scroll", function (e) { $(window).on("scroll", function (e) {
oVal = $(window).scrollTop() / 170; oVal = $(window).scrollTop() / 75;
$(".blur").css("opacity", oVal); $(".blurred-container .img-src").css("filter", "blur(" + oVal + "px)");
}); });
$("#motto").fitText(); $("#motto").fitText();

View file

@ -48,10 +48,6 @@ $peek-height: 25rem;
background-position: center center; background-position: center center;
} }
.blur {
opacity: 0;
}
.list-main { .list-main {
position: relative; position: relative;
background-color: #fff; background-color: #fff;

View file

@ -7,14 +7,9 @@
</div> </div>
{{ $imgsrc := print "images/" (.Param "cardImage") ".jpg" }} {{ $imgsrc := print "images/" (.Param "cardImage") ".jpg" }}
{{ $mainimg := resources.Get $imgsrc }} {{ $mainimg := resources.Get $imgsrc }}
{{ $blurimg := $mainimg.Filter (images.GaussianBlur 100) }}
<div <div
class="img-src" class="img-src"
style="background-image: url('{{ $mainimg.RelPermalink }}');" style="background-image: url('{{ $mainimg.RelPermalink }}');"
></div> ></div>
<div
class="img-src blur"
style="background-image: url('{{ $blurimg.RelPermalink }}');"
></div>
</div> </div>
<br /> <br />