background scroll
This commit is contained in:
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
BIN
home/art/img/mainbackground.png
(Stored with Git LFS)
Normal file
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
body, html {
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
@ -6,11 +6,16 @@ body, html {
|
|||
}
|
||||
|
||||
body{
|
||||
background-image: url('./img/bg.jpg');
|
||||
background-attachment: fixed;
|
||||
background-position: center center;
|
||||
background-image: url('./img/mainbackground.png');
|
||||
animation: scroll 2s infinite cubic-bezier(.68,-0.55,.27,1.55);
|
||||
|
||||
}
|
||||
|
||||
@-webkit-keyframes scroll {
|
||||
from {background-position: 0px 0px;}
|
||||
to {background-position: 128px 128px;}
|
||||
}
|
||||
|
||||
#header{
|
||||
justify-content: center;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue