...

[ ZORA DESIGN ]

SEO // DESIGN // BRANDING

[ ZORA DESIGN ]

SEO // DESIGN // BRANDING

[  ZORA DESIGN  ]

SEO // DESIGN // BRANDING

Create a Transparent Text with a Background Image in Divi

How to Create a Transparent Text Effect with a Background Image in Divi

 

 

Achieve a stunning effect where a background image appears only inside transparent text by following these steps:

  1. Add a Section and Background Image:
    • Set a section’s background image in the Background Tab with size set to Cover.
  2. Add a Row and Text Module:
    • Add a single-column row and insert a Text Module with your desired text.
    • Increase the font size (e.g., 200px) for better visibility.
  3. Apply Custom CSS:
    • Add this class to the Text Module: custom-text-mask
    • Use the following CSS:

 

 

/* Transparent text with section background image */
.custom-text-mask {
  color: transparent; /* Make the text transparent */
  font-size: 430px; /* Large text size */
  font-weight: bold; /* Bold for better visibility */
  text-align: center; /* Center the text */
  -webkit-text-stroke: 2px white; /* 2px white border around the text */
  -webkit-background-clip: text; /* Clip the section background to the text */
  background-clip: text; /* Standard for other browsers */
  background-size: cover; /* Ensure the background image fills the text */
  background-position: center; /* Center the background image inside the text */
  width: 100%; /* Make text span the full width */
  height: 100%; /* Ensure the text module spans the full section height */
  display: flex; /* Center the text within the section */
  justify-content: center; /* Horizontally align text */
  align-items: center; /* Vertically align text */
  text-transform: uppercase; /* Optional: Uppercase for emphasis */
}

Recent Post

How to add editor photo to Divi blog page (codes)

How to add editor photo to Divi blog page (codes)

The Divi author box shortcode is an easy way to display your editor’s photo and name on blog posts. In my YouTube tutorial, I explain how to set it up using simple PHP and CSS. You don’t need any extra plugins to make it work. With the Divi author box shortcode, you...

Hamburger menu desktop/mobile

DOWNLOAD JSON ZIPPED Theme header DOWNLOAD HERE Hamburger menu desktop mobile is the goal of this guide. You want one menu. It should look slick on desktop. It should feel smooth on mobile. This tutorial shows how to do that in Divi with a shortcode, Bootstrap 5, and...

Divi text marquee design

Divi text marquee design

How to create an eye catching marquee with divi theme The text marquee design effect is one of the easiest ways to make your website feel dynamic and engaging. In this tutorial, I’ll show you how to create a smooth, continuous scrolling text banner using simple HTML...

Custom Two-Column Blog Post Design (scroll)

Custom Two-Column Blog Post Design (scroll)

Learn how to build a  Custom Two-Column Blog Post Design in DIVI.   The design features a fixed full-width photo in the left column, serving as a captivating backdrop that sets the tone for the post, while the right column contains scrollable, highly readable...