...
Available
Available

ZD

ZORA DESIGN

AVAILABLE

ZD

ZORA DESIGN

AVAILABLE
Create a Transparent Text with a Background Image in Divi

By Julius Timgum

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)

Short CODE PHP CODE  function custom_author_box() { ob_start(); ?> <div class="custom-author-box"> <div class="author-avatar"> <?php echo get_avatar(get_the_author_meta('ID'), 96); ?> </div> <div class="author-name">...

Hamburger menu desktop/mobile

DOWNLOAD JSON ZIPPED Theme header DOWNLOAD HERE PHP CODE (Place in new code on code snippet plugin) function main_menu_shortcode() { ob_start(); wp_nav_menu([ 'menu' => 'hamburger', // ✅ Change this if your menu has a different name 'container' => false,...

Divi text marquee design

Divi text marquee design

How to create an eye catching marquee with divi theme Build an eye-catching marquee banner for your Divi/WordPress website using basic HTML and CSS. This stylish scrolling effect pauses when hovered over and resumes sliding once you move your cursor away. It's a...

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...

Seraphinite AcceleratorOptimized by Seraphinite Accelerator
Turns on site high speed to be attractive for people and search engines.