Personal Project · personal

MiLofi+

A lofi player to leave open in a tab: 21 tracks, one cover each, and an animated gradient wallpaper.

MiLofi+

built with

  • HTML
  • CSS
  • JavaScript
  • jQuery
  • GitHub Actions

about the project

MiLofi+ is a minimalist lofi music player made to stay open in a browser tab. The page is just a grid of 21 album covers: click one and the card expands in place into a small player with previous, pause and next controls, while the other cards dim.

I designed it in Figma and built it from scratch with plain HTML, CSS and JavaScript (jQuery), with no build step, and deployed it on GitHub Pages. I started it in 2021 and kept improving it over the years, from making it responsive and showing song information to a full rework of the layout and visuals.

The hardest part was the layout. I wanted the whole grid to fit the window with nothing to scroll, but still leave room for a card to open without making the page jump. JavaScript calculates the column count that gives the largest square cards while the grid still fits the screen, skips any count that wouldn’t leave space for an open card, and passes the sizes to CSS through custom properties (--card, --card-open, --gap-y, --grid). On phones or short windows it falls back to two scrolling columns. Tracks are defined in a single list in the code, which builds both the cards and the player, so adding a song means adding one entry. The background uses only color, with soft gradients drifting at different speeds, plus a canvas pointer trail that follows the cursor (or finger) behind the cards.

gallery