Skip to content

Commit

Permalink
Enable hardware-acceleration for background image scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
minimaluminium committed Oct 9, 2020
1 parent f313392 commit cb803d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion assets/main/css/main.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions assets/main/sass/layout/_wrapper.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
background-repeat: repeat, no-repeat, no-repeat;
background-attachment: scroll, scroll, scroll;
z-index: -1;
backface-visibility: hidden;
perspective: 1000;
transform-style: preserve-3d;
will-change: transform;

&.fixed {
position: fixed;
Expand Down

0 comments on commit cb803d4

Please sign in to comment.