DEV Community

Discussion on: How to create Music player with pure HTML, CSS, JS

Collapse
 
jamesthomson profile image
James Thomson

I would also suggest tracking the play/pause state against a variable instead of relying on css classes to determine the current state.

Collapse
 
themodernweb profile image
Modern Web

Yup! We can use music.paused as a condition instead of checking for play class both will work☺️