background scroll

master^2
waifu 7 months ago
parent d7f7355e9f
commit 51e24b9d8d
  1. BIN
      home/art/img/mainbackground.png
  2. 13
      home/art/styles.css

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

Binary file not shown.

@ -1,4 +1,4 @@
body, html { body {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@ -6,9 +6,14 @@ 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{

Loading…
Cancel
Save