favorite twitter linkedin chevron-right

Posts Tagged ‘css’

Css trick to reproduce glimpse on native scroll

One of the way I used recently to encourage users to scroll divs on horizontal scroller on mobile is to show an incomplete view of what is after, that is what in general is called “glimpse”. This could be accomplish with javascript of course but in many cases javascript could be too excessive, so here a little css snippet that reproduce what I want in a single css line

Read More

Lazy loading with responsive images and unknown height

I love asynchronous objects, they speed up page loading and limit the net usage as lazy loading images does, and this is a must especially on mobile.

But one of the problems I encountered using lazy load plugins is due to the required width and height you should set to each image to get the plugin to work properly, without these sizes, in fact, it could cause flashing on images causing an unpleasant effect and give the user the perception that the page is loaded more slowly.

Read More