https://github.com/dalascript/music-player
ZTM JS Web Projects Course | Music Player | Project 8/20
https://github.com/dalascript/music-player
audio-api css html js music-player zerotomastery
Last synced: 6 months ago
JSON representation
ZTM JS Web Projects Course | Music Player | Project 8/20
- Host: GitHub
- URL: https://github.com/dalascript/music-player
- Owner: DalaScript
- Created: 2025-05-21T13:12:15.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-05-28T13:31:08.000Z (9 months ago)
- Last Synced: 2025-06-22T14:14:43.886Z (8 months ago)
- Topics: audio-api, css, html, js, music-player, zerotomastery
- Language: JavaScript
- Homepage: https://dalascript.github.io/music-player/
- Size: 23.8 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Music Player | ZTM JS Web Projects Course
**Project 8/20**
šµ Music Player is a stylish and responsive web audio player built using HTML, CSS, and JavaScript. It allows users to play, pause, skip, and rewind through a playlist with real-time progress tracking and dynamic song updates.
---
## š Table of Contents
- [š Overview](#-overview)
- [šø Screenshot](#-screenshot)
- [š Links](#-links)
- [š Features](#-features)
- [š§ My process](#-my-process)
- [š ļø Built with](#ļø-built-with)
- [š What I learned](#-what-i-learned)
- [š Previous Project](#-previous-project)
- [š Next Project](#-next-project)
- [šļø Useful resources](#ļø-useful-resources)
- [š¤ Author](#-author)
- [š Connect with Me](#-connect-with-me)
- [š» Coding Profiles](#-coding-profiles)
---
## š Overview
### šø Screenshot

### š Links
- [š“ Live Demo](https://dalascript.github.io/music-player/)
- [šļø GitHub Repository](https://github.com/DalaScript/music-player)
### š Features
- ā
Dynamic playlist of multiple songs
- ā
Play/Pause toggle with animated icon switching
- ā
Next and Previous song navigation
- ā
Real-time progress bar with time tracking
- ā
Click-to-seek functionality on the progress bar
- ā
Auto-switch to next track when current ends
- ā
Responsive design and mobile-friendly layout
- ā
Smooth UI with album art transitions
---
## š§ My Process
### š ļø Built with
- HTML5
- CSS3
- Vanilla JavaScript
- `` API
### š What I Learned
- How to use the `` element and its JavaScript API
- Managing dynamic playlists with JavaScript objects and arrays
- DOM manipulation and updating UI in real-time
- Event listeners for media playback control
- Calculating and formatting audio time (minutes/seconds)
- Handling user input for audio scrubbing and interaction
> š For me, this project was more about **practice** and gaining additional **experience**,
> rather than learning something entirely new.
>
> šØāš» Since Iām not a beginner and already familiar with these technologies,
> I approached it with confidence ā and still, I truly **enjoyed working on it**.
>
> šÆ Overall, I consider this a very **valuable and enjoyable experience**.
### š Previous Project
- Navigation Nation | *[Project 7/20]* ā [View Repository](https://github.com/DalaScript/navigation-nation)
### š Next Project
- Custom Countdown | *[Project 9/20]* ā [View Repository](https://github.com/DalaScript/custom-countdown)
### šļø Useful resources
- [Google Fonts](https://fonts.google.com/) ā Free web fonts for styling text.
- [FontAwesome Icons](https://fontawesome.com/icons?d=gallery&q=close&m=free) ā Icons used for UI controls.
- [W3Schools - Audio DOM Reference](https://www.w3schools.com/tags/ref_av_dom.asp) ā Reference for `` methods/events.
- [W3Schools - This](https://www.w3schools.com/js/js_this.asp) ā Explains how `this` works in JS.
- [MDN - Object Fit](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) ā Resize media inside containers.
- [MDN - Ternary Operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_operator) ā Short `if-else` syntax.
- [MDN - Destructuring](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring) ā Extract values from objects/arrays.
- [MDN - Math Floor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/floor) ā Round numbers down.
- [MDN - Math Operators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators) ā JavaScript math basics.
- [textContent vs innerText](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) ā Difference between text outputs.
---
## š¤ Author
### š Connect with Me
- [Instagram](https://www.instagram.com/DalaScript)
- [YouTube](https://www.youtube.com/@DalaScript)
### š» Coding Profiles
- [freeCodeCamp](https://www.freecodecamp.org/DalaScript)
- [FrontendMentor](https://www.frontendmentor.io/profile/DalaScript)
- [GitHub](https://github.com/DalaScript)
*š Thanks for checking out my project! More coming soon. Stay tuned š*