AutoExpress / autoexpress /static /js /frontend_settings.js
damientheodore's picture
AutoExpress Docker version 1.0
424f388
raw
history blame contribute delete
443 Bytes
var gradientSelector = document.getElementById('gradient-animation-toggle');
const htmlElement = document.documentElement;
gradientSelector.addEventListener('change', () => {
if (gradientSelector.checked) {
htmlElement.style.animationPlayState = "running";
console.log('Gradient animation on');
} else {
htmlElement.style.animationPlayState = "paused";
console.log('Gradient animation off');
}
});