Create a product slider for a fictional audio brand, Ostra Sound, on a warm off-white page (#efebe4) with near black ink (#191714). Header with a round logo and a white "Bag" pill showing a count. Headline "Six ways to listen at home" and a "02 / 06" counter. Below, a 440px tall row of six rounded panels (28px radius), each in its own soft colour: headphones on sand #e9dccb, earbuds on sage #d3e0cf, a column speaker on blue grey #cfd8e4, a turntable on peach #ecc9b2, a pocket radio on butter #f1e7b8 and a smart speaker on lilac #ded6ee, each product drawn in inline SVG. Only the active panel is wide (up to 600px); the others shrink to 96px strips with a vertical name and number. Width is computed every frame from the distance to the slider position with a smoothstep, so dragging sideways makes panels open and close continuously while the row recentres. Release with momentum and snap with a 0.13 ease, with a rubber band at both ends. The wide panel shows the name, one line, two chips, the price and an "Add to bag" button that bumps the bag count. Under the row, round prev and next buttons and a progress bar. Arrow keys, Home and End work. On phones strips are 46px and the wide panel about 258px.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
Use it in three steps
- Copy the prompt with the button above.
- Paste it into your AI site builder, or any AI chat that writes code.
- Make it yours by putting your own products and prices in the panels.
About this product slider
Seeing the whole range at once helps people choose, so this product slider never hides a single item. The product in focus gets a wide panel with its drawing, a short line, two facts and a price, while every other product folds into a slim strip with its name running up the side, so people can see how many there are and jump straight to one.
The panels are not switched, they flex. Their widths are worked out from the drag position on every frame, so as you pull the row sideways one panel narrows while the next one opens, and the row recentres itself as it goes. Let go and it carries on a little before settling, with a soft stretch if you pull past either end.
Why the prompt works
- It gives both widths, 600 and 96 pixels, and says how to blend between them.
- It assigns each panel a colour, which turns six drawings into a range.
- It makes the slider sell, with a price and a working add to bag button.
- It sizes the phone version, 46 pixel strips around a 258 pixel panel.
Where to use it
Small shop ranges, feature tours, plan comparisons and team pages, anywhere four to eight items each need a proper look.
The prompt is shared under CC BY 4.0. Reuse it freely, including commercially, with a credit linking back to this page.