Skip to content

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

Open
@DumpName

Description

@DumpName

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions