fix animation for buttons
This commit is contained in:
parent
94bbfe98ef
commit
267c2089c1
1 changed files with 9 additions and 6 deletions
|
@ -34,12 +34,15 @@
|
|||
preload.onload = () => {
|
||||
loaded = true;
|
||||
|
||||
// gotta wait for svelte to realize that e does in fact, exist
|
||||
setTimeout(() => {
|
||||
e.addEventListener('mouseover', startEffect);
|
||||
e.addEventListener('mousemove', startEffect);
|
||||
e.addEventListener('mouseleave', () => {
|
||||
e.style.transform = '';
|
||||
e.style.boxShadow = '';
|
||||
});
|
||||
}, 100);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue