Lightbox or image zoom similar to Medium

The image zoom on Medium is really slick. You click on a single image and it enlarges while everything behind it fades to white. Pretty standard. But the really nice part is that not only clicking anywhere but also scrolling zooms the image out and fades the page back in. It’s super slick.

Does anyone think it’s possible to recreate this effect in webflow using behaviors - especially the scroll?

Here’s an example: Antler Farm. Where trophy deer are bred to grow… | by Sarah Laskow | re:form | Medium

7 Likes

Hey @tubes, that looks beautiful! We’ll add it to our list of features to consider for the future! :smiley:

3 Likes

Medium is pretty rad in what they do. The guys and gals behind the design of Medium is Teehan-Lax and they rock too. Check out their case studies. Mind blown.

2 Likes

Fluidbox was apparently built to mimic (& improve upon) the features of the Medium lightbox.

http://terrymun.github.io/Fluidbox/

1 Like

I looked at fluid box but it works differently. 1. It fades from the smaller image to the larger version as it zooms (which is great for file size but it’s not as smooth) and 2. It doesn’t zoom out when any scrolling is detected. Those are the two features that make Medium’s solution unique.

2 Likes

@callmevlad can it be done by adding a custom code?

i like fluidbox. will see if I can incorporate that into webflow

1 Like

@Mogeek fluidbox is nice but it’s not near the medium lightbox effect, the whole idea of the ixd achieved by medium is that the image returns nicely to it’s place upon scrolling, in fluidbox it’s not achivable.

The proper way to do it is to use this:

Now the real question is if it can be reproduced inside webflow…what do you think?

1 Like

I’ll play around with it. See what can be done.

2 Likes

Thanks @Revolution , that will be great!

Bump :sweat_smile:

I would love to have the same effect.
Has anyone achieved this in the meantime?

It´s fairly simple to achieve this type of zoom effect in Webflow using zoom.js
I made a quick test here: http://playground-pk.webflow.io/fatzoom-js

1 Get the files here:GitHub - fat/zoom.js: Medium's Image Zoom for jQuery

2 Add these references before tags in custom code
`

`

3 Add data-action=“zoom” to the custom attribute of the image

_Actually i found out that you can add the data-action to a higher level element such as rich text block and then all the images you add inside will zoom. Useful if you have a collection and don´t have the possibility to add a data-action directly to the element in Webflow.

3 Likes

Wonderful! Thanks a lot, will try this out!

Only a little tiny thing is missing in your test, the mouse should change to a zoom-icon :wink: But that is easily done in webflow ofc. Thanks for sharing!

A pleasure. Sharing is caring. :smile: :beers:

Thanks for sharing !

thanks for the share @perkristian ! would you be able to share your read-only link?

Shure thing @jcoger
Here you go:
https://preview.webflow.com/preview/playground-pk?preview=7d82fa608787287f13d4d0223314192c

1 Like

Thanks for sharing this!