How to Create a Countdown Timer With a Full Screen Background Video

Last Updated on September 11, 2022 by 16 Comments

How to Create a Countdown Timer With a Full Screen Background Video
Blog / Divi Resources / How to Create a Countdown Timer With a Full Screen Background Video
Play Button

This post is part 5 of 5 in our mini series titledย 5 Impressive Ways to Style Diviโ€™s Countdown Timer Module. Stay tuned this week for all five unique examples of Diviโ€™s countdown module, with a tutorial on how to achieve each one!


Today is the final tutorial in our miniseries on the countdown timer! I hope these tutorials have been educational, as well as inspirational. The great thing about these tutorial miniseries is you can use them exactly as they are in the tutorial, or as a jumping off point to create beautiful websites that are completelyย unique to you.

So to finish off our countdown timer module miniseries, I have something that I think youโ€™re really going to love. In other words, Iโ€™ve saved the best for last! In todayโ€™s tutorial, Iโ€™m going to show you how to use a full screen background video in your countdown timer, to โ€œbuild suspenseโ€ in a fun and remarkable way. Letโ€™s get started!

The Divi Countdown Module: Before & After

Hereโ€™s the default Divi countdown timer module, which is what weโ€™ll be starting with.

default-divi-countdown-module

And below youโ€™ll see an animated GIF ofย what weโ€™ll be creating today.

countdown-timer-with-full-screen-background-video

This countdown timer is unique for obvious reasons. The full screen section keeps you focused on the countdown, and the beautiful background video of the floating particles gives it a modern and sophisticated look. As I mentioned at the beginning of this miniseries, a countdown timer is perfect for building suspense for a website or product launch, orย even an event. Todayโ€™s countdown timer fills that role perfectly!

How to Create a Countdown Timer With a Full Screen Background Video

Subscribe To Our Youtube Channel

Preparing the Design Elements

Todayโ€™s countdown timer utilizes a full screen background video. Thereโ€™s lots of places to find free or premium stock footage, but for this tutorial weโ€™ll be taking advantage of some free video clips from Videezy.

Hereโ€™s the direct link to the video weโ€™ll be using:ย https://www.videezy.com/elements-and-effects/125-flying-particles-stock-video-in-hd

free-floating-particles-video-from-videezy

Go ahead and click the big purple โ€œDownloadโ€ button to download the free stock video to your computer. Weโ€™ll be utilizing it shortly. The rest of our design today is down with the built in Divi controls, plus some custom CSS, so thereโ€™s no more design elements to prepare. So itโ€™s time to head to Divi!

Implementing the Design with Divi

You can use todayโ€™s tutorial in an existing page, but for the sake of simplicity, weโ€™re going to work in a new page. So create a new page, give a title, enable Divi, then click theย big blue โ€œUse Visual Builderโ€ button to open up Diviโ€™s visual builder.

Divi automatically creates a new section for us,ย but now we need to create a new row. Go ahead and click the green plus icon, then click the icon to add a one column row, as shown in the red outline in the screenshot below.

adding-one-column-row-to-divi-visual-builder

Divi will automaticallyย prompt you to choose a module to insert. You can start typing โ€œcountdownโ€ and the countdown timer will be filtered for you. Click on it, and the countdown timer will be added to your layout, and the countdown timer module settings will be opened in front of you.

Adjusting the Module Settings

First, choose a date to count down to, and then change the โ€œUse Background Colorโ€ to No.

countdown-timer-general-settings

Now, click on the โ€œDesignโ€ tab and change the โ€œNumbers Font Sizeโ€ to 85px, and the โ€œLabel Font Sizeโ€ to 15px. Thatโ€™s all we need to changeย in the module settings. However, if youโ€™re using something other than the default Divi font (Open Sans) then youโ€™ll need to change all the fonts in the โ€œDesignโ€ tab of the module settings to โ€œOpen Sansโ€ in order to achieve the same look as my example. Otherwise, you can click the save button to close the countdown timer module settings. NOTE: it will look like thereโ€™s no countdown timer there at all, because we left the countdown module text colorย as โ€œLight.โ€ Once we add our background video in the instructions below, weโ€™ll be able to see the countdown.

Adjusting the Sectionย Settings

We now need to make a few minor adjustments to the section. Hover over the sectionย andย open up the Sectionย Settingsย (click on the gear icon in the blueย set of controls that appears when you hover over the section).

editing-section-settings-in-divi-visual-builder

Once you have the section settings up,ย navigate to the โ€œBackground Video MP4โ€ settings. Clicl the upload button and add the video we download earlier from Videezy. You should now see the background video playing behind our countdown timer!

 

We now need to make just one small adjustment in the Custom CSS tab of the Section Module Settings. Scroll down to the โ€œMain Elementโ€ custom CSS box, and addย height: 100vh;ย to the box. This makes the section full screen by making the section 100% of the viewport height.

section-settings-custom-css-box

Now click the green saveย button to save the section settings. Hereโ€™s what you should see so far. Getting close!

full-screen-background-video-countdown-timer-progress-screenshot

Adding the Custom CSS

The last thing we need to do is add the custom CSS to take us the rest of the way there! Yes, we did already add a small amount of custom CSS in the section and row settings, however for the remainderย of the custom CSSย weโ€™ll be adding it to the Custom CSS box of eitherย the Divi Theme Options panel or within theย individual page settings.

Why donโ€™t we add all of the CSSย directly within the module, row, or section? Divi has pre-targeted CSS classesย in the settings of the modules, row, and sections, howeverย it does notย target all theย CSS classes that areย available in the Divi stylesheet. So weโ€™ll need to target those classesย on our own by adding CSS to one of the areas mentioned above.

Before we add theย CSS though, weโ€™ll need to add our custom classes so that weโ€™ll only customize the countdown timer moduleย we areย working on today, and notย ALL countdown timers that are on the site or will be on the site.

So, open up the module settings, and click over to the CSS tab, and addย custom-countdown-5ย as the CSS class.

countdown-timer-module-custom-css-classes

 

Now that our custom class has been added, weโ€™re ready to add our custom CSS. As mentioned above, you can either add this CSS to the custom CSS box within Divi Theme Options, or within the Divi page settings for the individual page. Unless youโ€™re planning to add additional countdown timers with this same design to other pages on your site, I recommend adding the CSS to the page settings for the individualย page. This will allow you to see the custom CSS changes in real time (thanks to Diviโ€™sย Visual Builder).

To open up the page settings, click on the purple gear icon at the bottom of your screen. If you donโ€™t see this then click on the purple icon that you do see, and it will pop-open the rest of the menu icons. Once the Page Settings are open, click onto the CSS tab and paste the below CSS into the box. You should see the changes in real time.

<pre>.custom-countdown-5.et_pb_countdown_timer .sep {
display: none;
}

.custom-countdown-5.et_pb_countdown_timer .section.values {
 border-left: 1px solid #808080;
}
.custom-countdown-5 .days {
border-left: none !important;
 margin-right: 16px;
}

Next, save your changes, and admire your creation!

countdown-timer-with-full-screen-background-video-completed

BONUS: Additional Customization

In yesterdayโ€™s tutorial,ย I showed you how to add an animated gradient background to your countdown timer. We can combine the animated gradient background with our full screen background video for a even more unique look! Simply add the below CSS (after the CSS from above).


.et_pb_section:before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
-o-animation: colorcycle 20s ease infinite;
-moz-animation:
colorcycle 20s ease infinite;
-webkit-animation: colorcycle 20s ease infinite; animation: colorcycle 20s ease infinite;
background: linear-gradient(270deg, #a253e0, #f15b4f, #2ea3f2);
background-size: 600% 600%;
}
@-webkit-keyframes colorcycle { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @-moz-keyframes colorcycle { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} } @keyframes colorcycle { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }
.et_pb_section_video_bg { opacity: .9; }

Hereโ€™s what it will look like:

 

countdown-timer-with-full-screen-background-video-and-animated-gradient

This Concludes My Countdown Timer Series

While this concludes my countdown timer miniseries, thereโ€™s more great Divi tutorials in store for the community. Thanks for following along and I hope to see you back here for Divi blog posts every day!

Be sure toย subscribe to our email newsletterย andย YouTube channelย so that you never miss a big announcement, useful tip, or Divi freebie!

Divi Marketplace

Are You A Divi User? Find Out How To Get More From Divi! ๐Ÿ‘‡

Browse hundreds of modules and thousands of layouts.

Visit Marketplace
Divi Marketplace
Divi Cloud

Find Out How To Improve Your Divi Workflow ๐Ÿ‘‡

Learn about the new way to manage your Divi assets.

Get Divi Cloud
Divi Cloud
Divi Hosting

Want To Speed Up Your Divi Website? Find Out How ๐Ÿ‘‡

Get fast WordPress hosting optimized for Divi.

Speed Up Divi
Divi Hosting
Premade Layouts

Check Out These Related Posts

Get a Free Coffee House Layout Pack For Divi

Get a Free Coffee House Layout Pack For Divi

Posted on April 22, 2024 in Divi Resources

Hey Divi Nation! Thanks for joining us for the next installment of our weekly Divi Design Initiative; where each week, we give away a brand new Layout Pack for Divi. This time around, the design team has created a beautiful Coffee House Layout Pack thatโ€™ll help you get your next Coffee House...

View Full Post
Get a Free Butcher Shop Layout Pack for Divi

Get a Free Butcher Shop Layout Pack for Divi

Posted on April 15, 2024 in Divi Resources

Hey Divi Nation! Thanks for joining us for the next installment of our weekly Divi Design Initiative; where each week, we give away a brand new Layout Pack for Divi. This time around, the design team has created a beautiful Butcher Shop Layout Pack thatโ€™ll help you get your next Butcher Shop...

View Full Post

16 Comments

  1. Excellent tutorial.

    However, when I change colour/size of the numbers, only the h:m:s changes, but the days does not! What to do?

  2. Thanks for The Tutorial. But can I change the text under the digits? The German translation is not quite correct. The day is, for example, Tag(s), but it would have to be called Tag(e).

  3. A well put together and presented series Tim.
    A great resource and much appreciated.

    • Thanks for the kind words, Keith! I’m glad you enjoyed it ๐Ÿ™‚

  4. Thank you for this tutorial and thank you for the bonus tip. The result looks really nice.

    • You’re welcome, Andrej. I’m glad you found it helpful ๐Ÿ™‚

  5. These countdowns are beautiful. Great resource. Thank you.

  6. Thank you for sharing this great tip. Perfect christmas countdown. I’ll share this on facebook.

    • Glad you like it, Stig!

  7. BONUS: Additional Customization doesnยดt work. It makes no difference if you place the CSS or not

    • Hi Benjamin,

      Double check that you copied and pasted it (and saved it) correctly. I just double checked it, and it does in fact work. The colors are more subtle, so there’s a chance you may not have noticed it. You can make the colors more visible by adjusting the opacity in the last line of the CSS above.

  8. Is there a link to a demo version instead of a gif? I’d like to show an example to some clients ๐Ÿ™‚

    Also, if I’m working on a site, website.com/test
    And I want this to be my splash page on website.com, do I have to install WP & Divi in my root folder as well? Thanks!

    This is AWESOME!

    • Hi Izamar,

      No there isn’t a demo, but you could fairly quickly follow the tutorial and video to get it up and running on a test page in order to show it to a client ๐Ÿ™‚

      Yes you’ll need to install WordPress & Divi in the root folder if you plan on using Divi on the main domain.

  9. Great work on all of these countdown designs! Very inspiring. ๐Ÿ™‚

    • Thanks Ryan, I’m glad to hear it ๐Ÿ™‚

  10. Excellent topic ,this is helpful for us.

Leave A Reply

Comments are reviewed and must adhere to our comments policy.

Join To Download Today