...
Available
Available

ZD

ZORA DESIGN

AVAILABLE

ZD

ZORA DESIGN

AVAILABLE
Divi text marquee design

By Julius Timgum

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 fantastic way to announce new products or direct users to important content you want them to notice, all while adding a dynamic touch to your site!

 

HTML STRUCTURE:

<div class="marquee">
<div class="track">
    <!-- Original Content -->
    <span>→ Our New Arrivals → Best Sellers → Visit Our Shop → Contact Us → Subscribe to Our Newsletter→ Our New Arrivals → Best Sellers → Visit Our Shop → Contact Us → Subscribe to Our Newsletter</span>
   </div>
</div>

CSS CODE:

.marquee {
  position: relative;
  width: 100%; /* Full width of the container */
  height: 50px; /* Adjust height based on your text size */
  overflow: hidden; /* Hide any overflowing content */
  display: flex;
  align-items: center; /* Vertically align the text */
}

.track {
  display: flex; /* Arrange items horizontally */
  white-space: nowrap; /* Prevent wrapping of content */
  animation: marquee 20s linear infinite; /* Smooth scrolling animation */
}

.track > span {
  flex-shrink: 0; /* Prevent shrinking of text */
}


@keyframes marquee {
  from {
    transform: translateX(0); /* Start at the initial position */
  }
  to {
    transform: translateX(-50%); /* Move left by half the width of the track */
  }
}

/* Pause on hover */
.marquee:hover .track {
  animation-play-state: paused; /* Pause scrolling on hover */
}

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

Create a Transparent Text with a Background Image in Divi

Create a Transparent Text with a Background Image in Divi

How to Create a Transparent Text Effect with a Background Image in Divi https://www.youtube.com/watch?v=Uifaz7ywov0     Achieve a stunning effect where a background image appears only inside transparent text by following these steps: Add a Section and...

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.