unveil2 icon indicating copy to clipboard operation
unveil2 copied to clipboard

Unveil never or unreliably triggers inside carousels, dropdowns.

Open Antman261 opened this issue 9 years ago • 1 comments

I've been using unveil successfully across an entire site, however when using an img tag inside a carousel, (specifically nivoslider) unveil loads the placeholder pixel and only switches to the src if a scroll is triggered while the image is displayed in the carousel.

If I use a div it will set the background image from data-src or breakpoint-src immediately, this issue seems to be specific to img tags.

Could unveil instead more reliably check that a parent element is visible? Even better if we could set the trigger element via a data attribute, that way I could get unveil to load the entire carousel as soon as it appears on screen, ensuring transitions animate correctly.

Antman261 avatar Aug 30 '16 06:08 Antman261

Thanks for this. Could you provide an example of this behaviour on i.e. jsFiddle?

hongaar avatar Aug 30 '16 09:08 hongaar