Back to home

Richtext images zoom

This guide walks you through adding Fancybox functionality to images in Webflow's Rich Text element. You can enable individual image views or a sliding modal for images. Let's dive in! 🔥

Get started

Follow the simple steps below.

1. Installation

Add the following script to the body of your Webflow page or in settings custom code section if want to use on multiple pages:

<script src="https://cdn.jsdelivr.net/gh/kuzoki/webflow-helpers@main/kuzo-box.js"></script>

2. Add the Custom Attribute to the Rich Text

To enable Fancy box on images inside a Rich Text element, add one of the following attributes

  1. Select the Rich Text element in Webflow.
  2. Open the Settings Panel (gear icon ⚙️).
  3. Scroll down to Custom Attributes and click Add Custom Attribute.
  4. Set the name to kuzo-img-box and the value to either default or slider.
Example

3. Example For the Options

The Default option: will open the image in a modal view. click bellow image to see the example.

Photo by Ksenia Chernaya: https://www.pexels.com/photo/photo-of-muffins-on-top-of-blue-fabric-4048672/
Photo by Esra Afşar: https://www.pexels.com/photo/cozy-morning-with-latte-art-and-newspaper-30888208/

The Slider option: will open the image in a slider view. click bellow image to see the example.

Photo by Ksenia Chernaya: https://www.pexels.com/photo/photo-of-muffins-on-top-of-blue-fabric-4048672/
Photo by Esra Afşar: https://www.pexels.com/photo/cozy-morning-with-latte-art-and-newspaper-30888208/

Final Step

Congratulations! You have successfully integrated the Richtext images zoom into your Webflow project. If you have any questions or need further assistance, feel free to reach out to us.

Happy designing!

More custom Webflow scripts

Check out these other power-ups to enhance your Webflow website.

CMS Rive integration

Seamlessly integrate .riv files into your Webflow CMS.

Learn more

CMS Pagination

Seamlessly integrate .riv files into your Webflow CMS.

Learn more