Is it possible to create a webpage with a before and after image feature like the example provided on Shawlands Arcade in Webflow?

Published on
September 22, 2023

Yes, it is possible to create a webpage with a before and after image feature in Webflow. You can achieve this by using the built-in interactions and image elements in Webflow. Here's how you can do it:

  1. Start by creating a new project in Webflow or open an existing one.

  2. In the Webflow Designer, create a new section where you want to add the before and after image feature.

  3. Inside the section, add two image elements. One image will be the "before" image, and the other will be the "after" image.

  4. Set the source of each image by clicking on the image element and selecting the desired image from your assets or by providing an external URL.

  5. Adjust the dimensions and positioning of the image elements to fit your design.

  6. To create the before and after effect, we'll use Webflow's interactions. Click on the "before" image element and go to the Interactions panel.

  7. Create a new interaction and set the trigger to "Mouse Hover".

  8. In the interaction timeline, add an action to change the opacity of the "before" image element to 0% over a specified duration. This will make the "before" image disappear when the mouse hovers over it.

  9. Add another action to change the opacity of the "after" image element to 100% over the same duration. This will make the "after" image appear when the mouse hovers over the "before" image.

  10. Preview the interaction to see how it works. You can make further adjustments to the timing or add additional effects if desired.

  11. Publish your website to see the before and after image feature live.

By following these steps, you can create a webpage with a before and after image feature similar to the example provided on Shawlands Arcade.


Additional questions:

  1. How can I make the before and after image feature responsive in Webflow?
  2. Can I add a sliding animation to the before and after images in Webflow?
  3. Are there any custom code solutions to enhance the before and after image feature in Webflow?