From 34047d23fb5e09b6bc2728f0f8827eaa038f02ea Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sun, 1 Mar 2015 10:47:01 +0100 Subject: Lazy load images with the light lib bLazy.js instead of jQuery: * Remove jquery.lazyload lib * Add blazy lib * Add a bit of CSS animation * Delete unused picwall2 template --- inc/shaarli.css | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'inc/shaarli.css') diff --git a/inc/shaarli.css b/inc/shaarli.css index bb564e99..a88143ca 100644 --- a/inc/shaarli.css +++ b/inc/shaarli.css @@ -647,9 +647,21 @@ a.qrcode img { float: left; } +.b-lazy { + -webkit-transition: opacity 500ms ease-in-out; + -moz-transition: opacity 500ms ease-in-out; + -o-transition: opacity 500ms ease-in-out; + transition: opacity 500ms ease-in-out; + opacity: 0; +} +.b-lazy.b-loaded { + opacity: 1; +} + .picwall_pictureframe img { max-width: 100%; height: auto; + color: transparent; } /* Adapt the width of the image */ .picwall_pictureframe a { -- cgit v1.2.3