Ajust dashboard shuffle animation duration

Signed-off-by: Romein van Buren <romein@vburen.nl>
This commit is contained in:
Romein van Buren 2022-07-12 13:35:02 +02:00
parent 36d26ee5c8
commit 8ab20c9e2e
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49

View File

@ -31,7 +31,7 @@ export const shuffle = crossfade({
const transform = style.transform === 'none' ? '' : style.transform; const transform = style.transform === 'none' ? '' : style.transform;
return { return {
duration: 600, duration: 400,
easing: quintOut, easing: quintOut,
css: t => ` css: t => `
transform: ${transform} scale(${t}); transform: ${transform} scale(${t});
@ -41,8 +41,6 @@ export const shuffle = crossfade({
}, },
}); });
//export const ringBell = bell.play;
export function ringBell() { export function ringBell() {
const bell = new Audio('http://__SERVER__/statusdashboard/sound'); const bell = new Audio('http://__SERVER__/statusdashboard/sound');
bell.addEventListener('canplaythrough', () => bell.play()); bell.addEventListener('canplaythrough', () => bell.play());