Create Amazingly Cool Dynamic Exanding Elementor Accordians In Minutes

Exploding Puppies
Tutorials
Casey Whitcher Profile
Casey Whitcher
Show Some Love, Share!

Post Contents

Poodle Puppy
  • Temperament: Friendly, Curious, Spunky
  • AKC Breed Popularity: Ranks 12 of 196
  • Height: 5-6 inches
  • Weight: 5-11 pounds
Sheltie Puppy
  • Temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Dachshund Puppy
  • temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Corgie Puppy
  • Temperament: Affectionate, Smart, Alert
  • AKC Breed Popularity: Ranks 13 of 196
  • Height: 10-12 inches
  • Weight: up to 30 pounds
Golden Puppy
  • Temperament: Friendly, Intelligent, Devoted
  • AKC Breed Popularity: Ranks 3 of 196
  • Height: 23-24 inches 
  • Weight: 65-75 pounds
AmStaff Puppy
  • Temperament:Confident, Smart, Good-Natured
  • AKC Breed Popularity: Ranks 85 of 196
  • Height: 18-19 inches 
  • Weight: 55-70 pounds

Setting up your first section

The structure of this is just two identical sections stacked on top of each other.

To set up our first section we are going to create a section with a single column. 

We will assign a class to this column I’m going with main-puppy for mine.

Now we’re going to add a style to our first column. 

We are actually just going to duplicate this column so we’re only going to have to set this up once.  I’m going to assign main-puppy to my column.

While we’re in here lets add some padding to this for the content we will put inside.

Setting Up Our Column

We’re going to do a few things.  First, we need to set our background overlay image. 

We’re going to put our background in the Overlay so that we can have a solid color for our background, this will allow us to use set opacity on the overlay for our hover effect. 

Make sure your image is positioned: center center, no-repeat, and cover. 

I coordinated the background color to match the most prominent color in each of the pictures, but that could have just been set to black or any other dark color for consistency.

Inside our Column, we will add whatever content you want.  I went with a header, some copy in a text editor, and a button.

Adding Our CSS Styles

Now on to the fun part. 

Inside our Global Site Settings > Custom CSS we will add all of our styles:

*Note: I like to keep all of my CSS in one location, I will wrap each pages section with comments so I know what I’m looking at. 

The first thing I will do is  wrap the entire section so that the effects will not work on mobile since there is no hover. 

Then we’re going to set the contents of each of the .puppy-box columns to hidden by setting an opacity of 0.

We want the text and button to fade in when you hover over it so we are going to set a transition on the opactity.  The transition allows for the smooth change as opposed to a hard switch. 

we’re telling it we want to change the opacity, we want the change to take .3 seconds, and we want the change to ease in, and we want to delay the start of the change for .2 seconds.  Then we will tell it what we want the opacity to change to,  in this case, it’s fully visible, or 1. 

The next section is going to deal with the size of the boxes,  We are using FlexBox with Elementor to modify the size of the columns.  

We’re going to use the same method as previously used. 

We will tell the CSS we want to transition the flex property, and we want to take .3 seconds to do it, and we want it to ease. 

We are going to change the flex property from 1 to 3. 

For the next part, we are going to establish a max height for our sections of 300px. Then we are going to transition that height with the same .3 second ease. 

In our Hover state we will have our sections scale up to 400px tall. 

For the last part, since we don’t have a hover for mobile, we’re just going to style the 6 sections with the background already darkened. 

There are a lot of other ways you could handle this, but I’m just going to keep this one simple since this was really all about the desktop effects. 

/*—– exploding puppies —- */
@media(min-width:768px){
.puppy-box .elementor-widget-wrap{
opacity:0;
}
.puppy-box:hover .elementor-widget-wrap{
transition: opacity .3s ease .2s;
opacity:1;
}

.puppy-box{
overflow:hidden;
flex:1;
transition:flex .3s ease;
}
.puppy-box:hover{
flex:4;
}
.main-puppy{
max-height:300px;
transition:max-height .3s ease;
}

.main-puppy:hover{
max-height:400px;
}
}
@media(max-width:768px){
.puppy-box .elementor-widget-wrap{
opacity:1;
}
.puppy-box .elementor-background-overlay{
opacity:.2!important;
}
}

/*—- end exploding puppies —– */

Poodle Puppy
  • Temperament: Friendly, Curious, Spunky
  • AKC Breed Popularity: Ranks 12 of 196
  • Height: 5-6 inches
  • Weight: 5-11 pounds
Sheltie Puppy
  • Temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Dachshund Puppy
  • temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Corgie Puppy
  • Temperament: Affectionate, Smart, Alert
  • AKC Breed Popularity: Ranks 13 of 196
  • Height: 10-12 inches
  • Weight: up to 30 pounds
Golden Puppy
  • Temperament: Friendly, Intelligent, Devoted
  • AKC Breed Popularity: Ranks 3 of 196
  • Height: 23-24 inches 
  • Weight: 65-75 pounds
AmStaff Puppy
  • Temperament:Confident, Smart, Good-Natured
  • AKC Breed Popularity: Ranks 85 of 196
  • Height: 18-19 inches 
  • Weight: 55-70 pounds

Still messing with this, trying to come up with a solution that is a little smoother. 

This version below does not have a class on the two sections so they are just scaling to their normal sizes. 

Sheltie Puppy
  • Temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Poodle Puppy
  • Temperament: Friendly, Curious, Spunky
  • AKC Breed Popularity: Ranks 12 of 196
  • Height:  5-6 inches (miniature)
  • Weight: 11 pounds & under (miniature)
Dachshund Puppy
  • temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Corgie Puppy
  • Temperament: Affectionate, Smart, Alert
  • AKC Breed Popularity: Ranks 13 of 196
  • Height: 10-12 inches
  • Weight: up to 30 pounds
Golden Puppy
  • Temperament: Friendly, Intelligent, Devoted
  • AKC Breed Popularity: Ranks 3 of 196
  • Height: 23-24 inches 
  • Weight: 65-75 pounds
AmStaff Puppy
  • Temperament:Confident, Smart, Good-Natured
  • AKC Breed Popularity: Ranks 85 of 196
  • Height: 18-19 inches 
  • Weight: 55-70 pounds

This final version has a static height of 380px set on each of the colmuns. The result is much smoother, but you lose the vertical expand. 

Sheltie Puppy
  • Temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Poodle Puppy
  • Temperament: Friendly, Curious, Spunky
  • AKC Breed Popularity: Ranks 12 of 196
  • Height:  5-6 inches (miniature)
  • Weight: 11 pounds & under (miniature)
Dachshund Puppy
  • temperament: Playful, Energetic, Bright
  • AKC Breed Popularity: Ranks 25 of 196
  • Height: 13-16 inches
  • Weight: 15-25 pounds
Corgie Puppy
  • Temperament: Affectionate, Smart, Alert
  • AKC Breed Popularity: Ranks 13 of 196
  • Height: 10-12 inches
  • Weight: up to 30 pounds
Golden Puppy
  • Temperament: Friendly, Intelligent, Devoted
  • AKC Breed Popularity: Ranks 3 of 196
  • Height: 23-24 inches 
  • Weight: 65-75 pounds
AmStaff Puppy
  • Temperament:Confident, Smart, Good-Natured
  • AKC Breed Popularity: Ranks 85 of 196
  • Height: 18-19 inches 
  • Weight: 55-70 pounds

Final Thoughts

That’s all I have for this one.  If you have a better suggestion for how to pull this off, I would love to hear it. 

If you would like to see the creation of this menu as a video, I highly recommend you checking out ooohboi’s youtube channel

He shares some of my favorite Elementor training videos and is a great resource to bookmark! 

This post is based on his liquid accordion video

Also, in his video, he showcases his Steroids For Elementor plugin which is incredibly handy if you want to skip a lot of the CSS. 

If you have questions, feel free to ask!  Enjoy!

Leave a Reply

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

Related Articles

Tutorials

GTM + WooCommerce + Facebook Pixel!

Crocoblock

The Big List Of Crocoblock Widgets

Crocoblock

See All JetTricks By Crocoblock On One Page

Tutorials

Flexbox Tricks Are An Elementor Game Changer