mirror of
https://github.com/smartyellow/status.git
synced 2025-01-18 21:47:58 +00:00
Ajust dashboard shuffle animation duration
Signed-off-by: Romein van Buren <romein@vburen.nl>
This commit is contained in:
parent
36d26ee5c8
commit
8ab20c9e2e
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user