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