Divi Tutorial – A Cool Animated Divider

Divi Tutorial – A Cool Animated Divider

updated May 27th 2022

Did you see the divider animate in? I think that’s pretty cool. Especially since it animates on scroll. So it’s pretty neat.

It’s a neat little trick, and here’s how you do it.

Let’s start with a bar counter module. We’re going to use it as an animated underline to a heading. Go ahead and add a bar counter.

Make the background of the module itself transparent by pulling down the opacity to 0.
And add cool-divider to the custom class.

Now for the counter.

Set the percentage to 100.

and set the color you want in the counter background (next tab)

And of course, add this CSS to a place where you add custom CSS.
(Divi theme options, theme customizer, child theme CSS file, or page custom CSS)

.cool-divider.et_pb_counters > li {
	margin: 0px !important;
	padding: 0px !important;
	text-indent: 0px !important;
}
.cool-divider.et_pb_counters > li:before {
	content: none !important;
}
.cool-divider.et_pb_counters .et_pb_counter_container {
    width: 90px;
    margin: 0 auto;
    height: 2px;
}
.cool-divider.et_pb_counters span.et_pb_counter_amount_number {
	display: none;
}


 

Photo by Simone Hutsch on Unsplash

 
[sc name=”learn css”]
 

Edit: I had a comment on my YT video asking about why I don’t just use the divider module. I got a FB comment about this as well.

My answer to not using the divider module is that
– I like how this is subtle yet eye-catching.
– It’s contradictory, I know, but it’s something that when noticed is pretty cool, without being too overbearing.
– That’s the kind of animation that I like using.
– My style isn’t too heavy on things popping up slowly, bogging down the scroll and readability.

Hope this makes sense. 🙂

Get Breakdance

Breakdance is, in my opinion, the best page/site builder on the market, which is why all my tutorials use Breakdance. It's also why I have an affiliate link. You don't pay extra, but I get a little commission, so it helps support the site. Thanks!

Get ACF Pro

Another essential plugin for site building. This isn't an affiliate link, it's just for convenience.

Get WP Codebox Pro

If you'd like an easier to use, and more advanced code management plugin (instead of just editing and making files yourself) then WP codebox pro is for you. Adding php, js, and even SCSS. Pretty nice! Affiliate link below.

Blank Plugin

Sort of blank. It's made to be easy to use with the tutorials. Download and edit any way you see fit.
    Leave a Reply

    Your email address will not be published. Required fields are marked *

    New tutorials

    Auto-updating Year in Footer
    Designing Beyond the Brief
    Disable Gutenberg Editor on some ACF pages
    ACF flexible content fields in Breakdance 2.4

    Got a question? ask!

    If you have any question about the content on this page, feel free to send me an email by clicking the button below.

    newsletter? sign up!

    Sign up to the newsletter for updates on tutorials, news, and offers.

    Join the cypher!

    An awesome membership program for Breakdance Builder users coupled with an inclusive, friendly community.

    Got a question?

    If you have a question about something on this page, send me an email, and hopefully I can answer, and we can solve it!