background scroll

This commit is contained in:
waifu 2024-06-03 23:25:29 -03:00
parent d7f7355e9f
commit 51e24b9d8d
2 changed files with 12 additions and 4 deletions

BIN
home/art/img/mainbackground.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -1,4 +1,4 @@
body, html { body {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -6,11 +6,16 @@ body, html {
} }
body{ body{
background-image: url('./img/bg.jpg'); background-image: url('./img/mainbackground.png');
background-attachment: fixed; animation: scroll 2s infinite cubic-bezier(.68,-0.55,.27,1.55);
background-position: center center;
} }
@-webkit-keyframes scroll {
from {background-position: 0px 0px;}
to {background-position: 128px 128px;}
}
#header{ #header{
justify-content: center; justify-content: center;
} }