Skip to content

Commit

Permalink
Fixed post hero images for firefox (fixes #17)
Browse files Browse the repository at this point in the history
  • Loading branch information
MyXoToD committed Aug 17, 2024
1 parent 34a2f2c commit 2d643ff
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
32 changes: 21 additions & 11 deletions src/assets/stylesheets/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,12 @@
// color: transparent;
text-align: center;

@media (prefers-reduced-motion: no-preference) {
animation: hero-title-fade-out both linear;
animation-timeline: view();
animation-range: exit calc(-200px - var(--topbar-height));
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {
animation: hero-title-fade-out both linear;
animation-timeline: view();
animation-range: exit calc(-200px - var(--topbar-height));
}
}
}

Expand All @@ -202,11 +204,16 @@
opacity: .5;
z-index: -2;

@media (prefers-reduced-motion: no-preference) {
// transform-origin: bottom;
animation: hero-cover-animation both linear;
animation-timeline: view();
animation-range: exit;
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {
// transform-origin: bottom;
animation: hero-cover-animation both linear;
animation-timeline: view();
animation-range: exit;
}
}
@supports not (animation-timeline: view()) {
filter: blur(5px);
}

img {
Expand Down Expand Up @@ -373,8 +380,11 @@
width: 0%;
z-index: 100;
background-color: var(--c-accent);
animation: progress both linear;
animation-timeline: scroll();

@supports (animation-timeline: scroll()) {
animation: progress both linear;
animation-timeline: scroll();
}
}

@keyframes fadeInPost {
Expand Down
Loading

0 comments on commit 2d643ff

Please sign in to comment.