Sticky Photostack

Ooh I like this demo, making clever use of position: sticky;:

See the Pen Sticky Photostack by Bennett Feely (@bennettfeely) on CodePen.

There’s also some clever sizing going on in there to create the whitespace around the images, avoiding the need for a wrapper div per photo.


img {
    width: 100vmin;
    height: 100vmin;
    transform: scale(0.6) rotate(…);
}

Here’s a forked demo that also removes the figure, stripping it down to its core:

See the Pen Sticky Photostack (Forked) by Bramus (@bramus) on CodePen.

Published by Bramus!

Bramus is a Freelance Web Developer from Belgium. From the moment he discovered view-source at the age of 14 (way back in 1997), he fell in love with the web and has been tinkering with it ever since (more …)

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.