mirror of
https://github.com/pmret/website.git
synced 2024-11-09 12:32:48 +01:00
scrolling clouds in background
This commit is contained in:
parent
c5681b26e3
commit
f202e92d18
BIN
src/bg/mrn-clouds.png
Normal file
BIN
src/bg/mrn-clouds.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 171 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.3 MiB After Width: | Height: | Size: 2.3 MiB |
@ -23,6 +23,27 @@ html {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
background-image: url(bg/mrn-clouds.png);
|
||||
background-repeat: repeat-x;
|
||||
background-size: contain;
|
||||
animation: clouds linear 30s infinite normal;
|
||||
}
|
||||
|
||||
@keyframes clouds {
|
||||
from {
|
||||
background-position: 0 0;
|
||||
}
|
||||
|
||||
to {
|
||||
background-position: 100vw 0;
|
||||
}
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user