Entry tags:
CODE: Collapsible Playlist
UPDATED 12/6/2022: Accidentally posted this with messed up spacing for the lyrics. Oops. Fixed now.
I can't think of a name, so this is just Collapsible Playlist for now. This code was inspired by Spotify, but you can sub in whatever music service of your choice. I think it's fairly easy to edit and customize, but please comment below if you need any help. I made a few variants in white or black, but since this is pure HTML/CSS, you can change anything, including the colours of the control icons. This code is compatible with mobile and IJ.
By default, the code shows the playlist and the first song's lyrics. If you'd like to change this, you can delete
open
from <details class="SONG_ENTRY" open>
to hide the lyrics, or delete open
from <details class="PLAYLIST" open ...>
to hide the whole playlist until the user clicks on the header.
COLOURS
TEXT REPLACEMENTS
#FFFFFF
- title, subtitle, playbar, timecodes, control icons#CCC
- borders#EEE
- playlist background#111
- playlist text#E5DFEC
- playlist lyrics text#6D5389
- footer background#FEFEFE
- footer linkTEXT REPLACEMENTS
BACKGROUND_IMG_URL
- background image for the "player"PLAYLIST_URL
- link to your playlist (on Spotify, etc.)
NOTES
There is a subtle dark overlay on the background image. To remove this, find and delete
To change the position of the playbar, find
The colour of the tracking bar is at
There is a subtle dark overlay on the background image. To remove this, find and delete
background:rgba(0 0 0/0.2);
To change the position of the playbar, find
width:33%
and change the number to anything between 0-100.The colour of the tracking bar is at
background:rgba(255 255 255/0.3);
- to change this, find the RGB value of the colour you want and replace 255 255 255
.
COLOURS
TEXT REPLACEMENTS
#121212
- title, subtitle, playbar, timecodes, control icons#CCC
- borders#EEE
- playlist background#111
- playlist text#DDDDDD
- playlist lyrics text#000000
- footer background#FEFEFE
- footer linkTEXT REPLACEMENTS
BACKGROUND_IMG_URL
- background image for the "player"PLAYLIST_URL
- link to your playlist (on Spotify, etc.)
NOTES
There is a subtle light overlay on the background image. To remove this, find and delete
To change the position of the playbar, find
The colour of the tracking bar is at
There is a subtle light overlay on the background image. To remove this, find and delete
background:rgba(255 255 255/0.2);
To change the position of the playbar, find
width:33%
and change the number to anything between 0-100.The colour of the tracking bar is at
background:rgba(0 0 0/0.3);
- to change this, find the RGB value of the colour you want and replace 0 0 0
.
COLOURS
TEXT REPLACEMENTS
#FFFFFF
- title, subtitle, playbar, timecodes, control icons#F44336
- dropshadow#CCC
- borders#EEE
- playlist background#111
- playlist text#FCD2CF
- playlist lyrics text#F44336
- footer background#FEFEFE
- footer linkTEXT REPLACEMENTS
BACKGROUND_IMG_URL
- background image for the "player"PLAYLIST_URL
- link to your playlist (on Spotify, etc.)
NOTES
There is a subtle dark overlay on the background image. To remove this, find and delete
To change the position of the playbar, find
The colour of the tracking bar is at
There is a subtle dark overlay on the background image. To remove this, find and delete
background:rgba(0 0 0/0.2);
To change the position of the playbar, find
width:33%
and change the number to anything between 0-100.The colour of the tracking bar is at
background:rgba(255 255 255/0.3);
- to change this, find the RGB value of the colour you want and replace 255 255 255
.
COLOURS
TEXT REPLACEMENTS
#121212
- title, subtitle, playbar, timecodes, control icons#FFC107
- dropshadow#CCC
- borders#EEE
- playlist background#111
- playlist text#FFF2CC
- playlist lyrics text#000000
- footer background#FFC107
- footer linkTEXT REPLACEMENTS
BACKGROUND_IMG_URL
- background image for the "player"PLAYLIST_URL
- link to your playlist (on Spotify, etc.)
NOTES
There is a subtle light overlay on the background image. To remove this, find and delete
To change the position of the playbar, find
The colour of the tracking bar is at
There is a subtle light overlay on the background image. To remove this, find and delete
background:rgba(255 255 255/0.2);
To change the position of the playbar, find
width:33%
and change the number to anything between 0-100.The colour of the tracking bar is at
background:rgba(0 0 0/0.3);
- to change this, find the RGB value of the colour you want and replace 0 0 0
.
no subject
no subject