Features
- π§ Play, pause, next, and previous song controls
- π΅ Dynamic song and artist info display
- πΌοΈ Changing album cover image
- β±οΈ Progress bar with real-time updates
- π Display of current time and duration
- π Clickable progress bar to seek to any part of the track
- πΌ Automatically plays next song when the current one ends
Technologies Used
- HTML5 β Markup structure
- CSS3 β Styling and layout
- JavaScript (ES6) β Logic and interactivity
JavaScript Overview
The main logic is handled in script.js:
- Stores an array of songs with metadata (name, displayName, artist)
- Functions to play/pause music, load songs, update the UI, and handle user interaction with the progress bar
- Uses event listeners for user actions and playback updates
Key functions include:
- playSong() / pauseSong()
- loadSong(song)
- nextSong() / prevSong()
- updateProgressBar(e) / setProgressBar(e)
Letβs work together
dziyanakantsevich@gmail.com
Frontend developer
UI/UX Designer
Available worldwide