ApoorvSaxena / ApoorvSaxena/lozad.js

How to add a class/selector to <img> when using <picture>

Open
#244 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.5k
Forks
435
PR merge metrics
No merged PRs in 30d

Description

Not an issue but I'm struggling to find how to do this. In using the picture/source/img responsive setup I need to add a class directly to the element (for a different GSAP array).

I've searched the issues here and haven't found success, can anyone help?

TIA

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.