Elektrine lite

← Feed

@rye@ioc.exchange

Post #4176083

2026-07-28 14:53 UTC

Im looking for a design pattern to make an image gallery without any javascript. the gallery should support "n" number of images, and offer a modal on click. Boosts and recs welcomed. #webdev #indieweb #smallweb #html #nojs #css #frontEnd

Replies (3)

  • @bouncinglime@spanner.works 2026-07-28 15:42

    @rye@ioc.exchange I would also like to subscribe to this recommendation thread

    Open ##4191542

  • @rye@ioc.exchange You can use button elements with dialog elements to do something similar. Wrap the image in a button that triggers the dialog with (from memory) commandfor, and that should get handled without JS. However, in most cases you'll still need JS for accessibility purposes. It's possible that the new invoker stuff is okay at inferring relationships, but I wouldn't rely on it, so if you need to make this work for most people, JS is still required (as with most interactive patterns).

    Open ##4191552

  • @fullywoolly@mastodon.social 2026-07-28 17:02

    @rye@ioc.exchange https://github.com/novaGallery/novagallery in php and creates pages from images in a directory ... Didn't look into js piece. On mobile so hard to see page source.

    Open ##4211295