animation css
This commit is contained in:
parent
6a8463fab5
commit
1e04b86236
@ -71,10 +71,8 @@ socket.on('position', (position) => {
|
|||||||
function togglePlay() {
|
function togglePlay() {
|
||||||
if (isPlaying) {
|
if (isPlaying) {
|
||||||
audio.pause();
|
audio.pause();
|
||||||
vinyl.style.animationPlayState = 'paused';
|
|
||||||
} else {
|
} else {
|
||||||
audio.play();
|
audio.play();
|
||||||
vinyl.style.animationPlayState = 'running';
|
|
||||||
}
|
}
|
||||||
isPlaying = !isPlaying;
|
isPlaying = !isPlaying;
|
||||||
}
|
}
|
||||||
@ -107,7 +105,6 @@ function setProgress(e) {
|
|||||||
// Fonction pour stopper la lecture
|
// Fonction pour stopper la lecture
|
||||||
function stopPlayback() {
|
function stopPlayback() {
|
||||||
audio.pause();
|
audio.pause();
|
||||||
vinyl.style.animationPlayState = 'paused';
|
|
||||||
isPlaying = false;
|
isPlaying = false;
|
||||||
audio.playbackRate = 1;
|
audio.playbackRate = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user