Srcset on rsimg tag

ti's Avatar

ti

07 Feb, 2018 01:41 AM

Hi,

How can I manage to use a the picture tag or srcset attributes with the rsimg tag of royal slider. We need to be able to uploads different dpr images for every type of device and we couldn’t manage to make it work on the rsimg. If possible, can you give me some code example?

Thanks!

  1. Support Staff 1 Posted by Dmitry Semenov on 07 Feb, 2018 06:45 AM

    Dmitry Semenov's Avatar

    Hello,

    If you need srcset and don't need lazy-loading - simply add a simple IMG element without rsImg class.

    If you need lazy-loading, you may use this technique to create image element dynamically as slides change http://jsfiddle.net/DmitrySemenov/danpsx91/

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac