update delay
This commit is contained in:
parent
32f0bb21d9
commit
d2bc83afc3
1 changed files with 3 additions and 10 deletions
|
|
@ -83,24 +83,17 @@
|
|||
const logo = document.querySelector("#logo")
|
||||
const buymeacoffe = document.querySelector("#buymeacoffe")
|
||||
|
||||
const animateLogo = () => {
|
||||
const animate = () => {
|
||||
logo.setAttribute('data-animation', 'positionUpDownUp')
|
||||
|
||||
setTimeout(() => {
|
||||
logo.setAttribute('data-animation', '')
|
||||
}, 10000)
|
||||
}
|
||||
|
||||
const animateBuymeacoffe = () => {
|
||||
buymeacoffe.setAttribute('data-animation', 'positionDownUpDown')
|
||||
|
||||
setTimeout(() => {
|
||||
logo.setAttribute('data-animation', '')
|
||||
buymeacoffe.setAttribute('data-animation', '')
|
||||
}, 10000)
|
||||
}
|
||||
|
||||
setInterval(animateLogo, 30000)
|
||||
|
||||
setInterval(animate, 30000)
|
||||
setTimeout(animateLogo, 3000)
|
||||
setTimeout(animateBuymeacoffe, 3000)
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue