Skip to content

Commit

Permalink
Add fixed position background
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLacerdaUX committed Apr 13, 2023
1 parent 345f339 commit 2e89412
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -3260,6 +3260,16 @@ details-disclosure > details {
clip-path: ellipse(45% 45% at 50% 50%);
}

/* Fixed background */
.animate--fixed {
clip-path: inset(0);
}

.animate--fixed>img:not(.zoom):not(.deferred-media__poster-button),
.animate--fixed>svg:not(.zoom):not(.deferred-media__poster-button) {
position: fixed;
}

/* Animations */

@media (prefers-reduced-motion: no-preference) {
Expand Down
3 changes: 3 additions & 0 deletions locales/en.default.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,9 @@
"options__2": {
"label": "Ambient movement"
},
"options__3": {
"label": "Fixed background position"
},
"label": "Image behavior"
}
},
Expand Down

0 comments on commit 2e89412

Please sign in to comment.