Closed samanpwbb closed 5 years ago
:+1: on this. I was looking for this exact functionality.
@samanpwbb @chimericdream
how to implement this feature???
i am assuming the html tag to be div data-src="img2.jpg" data-src-retina="img2-retina.jpg" style="background-image: url('bg.png')"
and what should i use in selector to initialize in place of $("img").trigger("unveil");
Allows user to pass attribute parameter. If no attribute parameter is passed, defaults to
src
. Useful for elements withstyle='background-image(...)'
.Sort of a different take on https://github.com/luis-almeida/unveil/pull/40.