move logo
This commit is contained in:
parent
ea6ae980df
commit
60d7061399
2 changed files with 0 additions and 55 deletions
55
logo.html
55
logo.html
|
|
@ -1,55 +0,0 @@
|
|||
<!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>
|
||||
|
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Loading…
Add table
Add a link
Reference in a new issue