toddmotto / echo

Lazy-loading images with data-* attributes

Home Page:http://toddmotto.com/labs/echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

data-echo-background?

renege opened this issue · comments

How to do the data-echo-background? I'm at version 1.6.0.

<style>
div{ background: url('/bg/1pixel.gif') center center no-repeat; height: 300px; width: 100%; } 
</style>
 <div data-echo-background="/bg/photo.jpg">foobar</div>

Does not work. Still shows the 1pixel image.
All my 's are working.

// cc @jonathan-fielding

or isn't it available trough bower yet, @toddmotto ?

This wasn't made avaliable through bower yet, just download latest from master to use it, we already use the feature on beamly.com and it works really well

Ok I just created 1.7 so you can continue to use bower

bower version 1.7 isn't including @ingramos's update the data-echo-background to remove the attribute on unload
1118a81

Ok will look at doing another release

ok that is now is 1.7.1 which i just pushed out, thanks