vueper-slides icon indicating copy to clipboard operation
vueper-slides copied to clipboard

Feature Request: Add possibility to provide multiple image sources for different sizes

Open DumpName opened this issue 7 months ago • 0 comments

Type

one-off feature

Problem

I want to utilize multiple sources for different sizes of the same image, so that the smallest image fitting for the device can be loaded. See MDN.

Implementation

My idea would be to add an additional prop to the vuepperslide component that takes an array of objects { srcset: <String>, mediaqry: <String> }. If the array is existing and is not empty the slide should render a picture element surrounding the default img element. Additionaly for each entry of the array one source element should be rendered.

DumpName avatar May 19 '25 11:05 DumpName