redo main/register page

This commit is contained in:
SowinskiBraeden committed 2022-04-13 13:12:19 -07:00
1 parent eaa2febbf2
commit 1ad5eb654b
400 files changed
+93168 -323

No files matched your search

@@ -0,0 +1,18 @@
/**
Slows animations
*/
const slowDownAnimations = (target) => {
const targetEl = document.querySelector(target)
const doc = document.documentElement
targetEl.addEventListener('click', () => {
const currentDuration = getComputedStyle(document.documentElement)
.getPropertyValue('--animate-duration')
const newDuration = currentDuration === '1s' ? '2s' : '1s'
document.documentElement.style.setProperty('--animate-duration', newDuration);
})
}
export default slowDownAnimations