background preloader

Parallax Scroll Horizen

Facebook Twitter

爭鮮迴轉壽司. Building a parallax scrolling storytelling framework | Tutorial. 動物たちのハーブガーデン SOLEILA(ソレイラ) _ Creative Studio. History Timeline | London School of Hygiene & Tropical Medicine | LSHTM. Coca-Cola Bottling Co. CONSOLIDATED. Pure CSS Coke Can. (versión en castellano abajo) After doing the CSS Paper Bird effect, I found out that by a combination of the CSS1 properties background-attachment and background-position, 2D displacement maps could be created and, by scrolling, the displacement map would be applied to different parts of the texture (a background image).

With displacement maps lots of cool effects could be done, but thinking that the complexity of the displacement map would directly affect the CSS and markup size, choosing a good example took me some time. I thought in sea waves reflections, underwater distortions, magnifying glass, a rotating Earth… but the final thing I did was just right in my desktop: a Coke can - my favourite drink. Due the cilindrical shape of a can, the displacement map is very simple with the parallel projection I did, so the code is very little - below 5kb - and easy to understand I hope.

Castellano. Hobo Lobo of Hamelin - Page 1.