add logo
This commit is contained in:
commit
94e134aa1a
2 changed files with 55 additions and 0 deletions
BIN
assets/logo-all.png
Normal file
BIN
assets/logo-all.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
55
logo.html
Normal file
55
logo.html
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<title>Logo</title>
|
||||||
|
<style>
|
||||||
|
#wrapper {
|
||||||
|
width: 100%;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 24px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#wrapper img {
|
||||||
|
margin-left: -60px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#animate {
|
||||||
|
animation-name: position;
|
||||||
|
animation-duration: 4s;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes position {
|
||||||
|
from {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
transform: translateY(120px);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="wrapper">
|
||||||
|
<img src="./assets/logo-all.png">
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
const img = document.querySelector("#wrapper img")
|
||||||
|
|
||||||
|
setInterval(() => {
|
||||||
|
img.setAttribute('id', 'animate')
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
img.setAttribute('id', '')
|
||||||
|
}, 5000)
|
||||||
|
}, 60000)
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue