mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-19 14:31:48 +01:00
Change interval time
This commit is contained in:
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
document.getElementById(new_color.name)!.classList.toggle(new_color.color)
|
||||
setTimeout(() => document.getElementById(color.name)!.classList.toggle(color.color), 0)
|
||||
CURRENT === COLORS.length - 1 ? CURRENT = 0 : CURRENT++
|
||||
}, 3000)
|
||||
}, 2000)
|
||||
})
|
||||
|
||||
onUnmounted(() => clearInterval(task))
|
||||
|
||||
Reference in New Issue
Block a user