Each and every week, we come up with new and unfastened Divi format packs which you’ll be able to use to your subsequent venture. For one of the vital format packs, we additionally proportion a use case that’ll mean you can take your web page to the following degree.

This week, as a part of our ongoing Divi design initiative, we’re going to turn you methods to create an increasing sticky menu on hover the use of Divi’s Mechanic Layout Pack. We’ll take care of two other design examples that you’ll be able to recreate from scratch and practice to any more or less web page you’re developing! The menu will likely be proven on hover on desktop display screen sizes and activated on click on on cellular units.

Let’s get to it!

Preview

Prior to we dive into the academic, let’s take a snappy have a look at the result throughout other display screen sizes.

Instance #1

Desktop

Expanding Sticky Menu

Cell

Expanding Sticky Menu

Instance #2

Desktop

Expanding Sticky Menu

Cell

Expanding Sticky Menu

Normal Steps

Disable Mounted Navigation

Cross to Divi Theme Choices

We’ll get started off with some common steps. Those steps are the similar for each examples and are vital to succeed in the specified result.

When you’re making plans on the use of an increasing sticky menu on the backside of your web page, you may need to pass over the main menu bar on the best. To do this, it is very important pass to Divi’s theme choices.

expanding sticky menu

Disable Mounted Navigation

There, you’ll need to disable the mounted navigation bar possibility to ensure no area stays on the best of your web page.

  • Mounted Navigation Bar: Disabled

expanding sticky menu

Conceal Number one Menu Bar on Web page

Open Web page Settings

Transfer directly to the web page you wish to have so as to add the increasing sticky menu to and open the web page settings.

expanding sticky menu

Upload Customized CSS

Conceal the main menu by means of including the next traces of CSS code for your web page.

#main-header {
show: none;
}

expanding sticky menu

Upload New Segment to Finish of Web page

Whichever instance you wish to have to recreate, one of the elementary steps stay the similar. Step one is including a standard phase to the ground of the web page.

expanding sticky menu

Spacing

Open the phase settings and take away all customized best and backside padding.

  • Best Padding: 0px
  • Backside Padding: 0px

expanding sticky menu

Upload New Row

Column Construction

Proceed by means of including a brand new row the use of the next column construction:

expanding sticky menu

Sizing

With out including any modules but, open the row settings and make allowance the row to soak up all of the width of the display screen.

  • Use Customized Gutter Width: Sure
  • Gutter Width: 1
  • Width: 100%
  • Max Width: 100%

expanding sticky menu

Spacing

Take away all default best and backside padding subsequent.

  • Best Padding: 0px
  • Backside Padding: 0px

expanding sticky menu

Major Component

We’re permitting all of the row to stick with the ground of our web page by means of including two unmarried traces of CSS code to the principle part of the row.

backside: 0px;
place: mounted;

expanding sticky menu

Z Index

And we’ll be certain the row (and the Textual content Module we upload within the upcoming steps) stays on best of all web page content material by means of expanding the Z index within the visibility settings of the row.

  • Z Index: 99

expanding sticky menu

Recreate Instance #1

Expanding Sticky Menu

Upload Textual content Module to Column

Upload Content material

Now that we’ve long past via the entire steps, we will be able to get started specializing in the 2 other design examples, beginning with the primary one! Upload a Textual content Module to the column of your row. Within the content material field, we’re the use of the paragraph taste to turn the ‘≡ Menu’ reproduction. We’re, then, putting the entire menu pieces in an unordered checklist. We’ll additionally upload a hyperlink to each and every one of the vital web page titles personally.

expanding sticky menu

Default Background Colour

Transfer directly to the background settings of the module and alter the background colour.

  • Background Colour: #ffffff

expanding sticky menu

Hover Background Colour

Alter this background colour on hover.

  • Background Colour: rgba(255,255,255,0.83)

expanding sticky menu

Gradient Background

And upload a default gradient background as smartly.

  • Colour 1: rgba(255,255,255,0)
  • Colour 2: #ffffff
  • Finish Place: 60%

expanding sticky menu

Default Textual content Settings

Proceed by means of going to the design tab and editing the textual content settings.

  • Textual content Font: Khand
  • Textual content Font Weight: Daring
  • Textual content Colour: #021827
  • Textual content Measurement: 3vh
  • Textual content Orientation: Middle

expanding sticky menu

Hover Textual content Settings

Alter one of the textual content settings on hover.

  • Textual content Colour: rgba(255,255,255,0)
  • Textual content Measurement: 0vh

expanding sticky menu

Hyperlink Textual content Settings

Then, pass to the hyperlink textual content settings and alter the hyperlink textual content colour.

  • Hyperlink Textual content Colour: #000000

expanding sticky menu

Default Listing Textual content Settings

Transfer directly to the default checklist textual content settings and magnificence it on the other hand you wish to have to. Remember to’re the use of ‘0px’ for the textual content dimension in its default state.

  • Unordered Listing Font: Khand
  • Unordered Listing Font Taste: Uppercase
  • Unordered Listing Textual content Alignment: Middle
  • Unordered Listing Textual content Colour: rgba(255,255,255,0)
  • Unordered Listing Textual content Measurement: 0px
  • Unordered Listing Line Top: 0em
  • Unordered Listing Taste Place: Inside of

expanding sticky menu

expanding sticky menu

Hover Listing Textual content Settings

Then, regulate one of the values on hover to permit the menu pieces to seem.

  • Unordered Listing Textual content Colour: #000000
  • Unordered Listing Textual content Measurement: 2vh
  • Unordered Line Top: 2.1em

expanding sticky menu

Default Spacing

Cross to the spacing settings subsequent and provides the Textual content Module a form.

  • Left Margin: 45vw (Desktop), 39vw (Pill), 33vw (Telephone)
  • Proper Margin: 45vw (Desktop), 39vw (Pill), 33vw (Telephone)
  • Best Padding: 2vw (Desktop), 4vw (Pill), 6vw (Telephone)
  • Backside Padding: 2vw (Desktop), 4vw (Pill), 6vw (Telephone)

expanding sticky menu

Hover Spacing

Alter those identical values on hover.

  • Left Margin: 14vw
  • Proper Margin: 14vw
  • Best Padding: 8vw
  • Backside Padding: 8vw

expanding sticky menu

Default Border

Transfer directly to the border settings and ensure each and every one of the vital rounded corners has a price of ‘0px’.

expanding sticky menu

Hover Border

Permit the hover choices at the rounded corners and alter the highest left and best proper values.

  • Best Left: 50vw
  • Best Proper: 50vw

expanding sticky menu

Field Shadow

Proceed by means of giving the module some intensity the use of a field shadow. This will likely be certain the menu doesn’t pass left out at the web page.

  • Field Shadow Blur Energy: 1000ms
  • Shadow Colour: rgba(0,0,0,0.68)

expanding sticky menu

Transitions

Final however now not least, lower the transition period within the transitions settings.

  • Transition Period: 100ms

expanding sticky menu

Recreate Instance #2

Expanding Sticky Menu

Upload Textual content Module to Column

Upload Content material

Directly to the second one instance! Right here, we’re once more going so as to add ‘≡ Menu’ the use of the paragraph textual content taste and the menu pieces the use of an unordered checklist. We’ll additionally upload a hyperlink to each and every one of the vital menu pieces personally.

expanding sticky menu

Default Background Colour

Transfer directly to the background settings and alter the background colour.

  • Background Colour: #ffffff

expanding sticky menu

Hover Background Colour

Alter the background colour on hover.

  • Background Colour: #f71535

expanding sticky menu

Default Textual content Settings

Then, pass to the design tab and make some adjustments to the illusion of the paragraph reproduction.

  • Textual content Font: Khand
  • Textual content Colour: #021827
  • Textual content Measurement: 3vh

expanding sticky menu

Hover Textual content Settings

Alter those settings on hover.

  • Textual content Colour: rgba(255,255,255,0)
  • Textual content Measurement: 0vh

expanding sticky menu

Hyperlink Textual content Settings

Transfer directly to the textual content settings and alter the hyperlink textual content colour.

  • Hyperlink Textual content Colour: #ffffff

expanding sticky menu

Default Listing Textual content Settings

Alternate the design settings of the unordered checklist pieces as smartly.

  • Unordered Listing Font: Khand
  • Unordered Listing Font Taste: Uppercase
  • Unordered Listing Textual content Alignment: Middle
  • Unordered Listing Textual content Colour: rgba(255,255,255,0)
  • Unordered Listing Textual content Measurement: 0px
  • Unordered Listing Line Top: 0em
  • Unordered Listing Taste Place: Inside of

expanding sticky menu

expanding sticky menu

Hover Listing Textual content Settings

And regulate a few of these values on hover.

  • Unordered Listing Textual content Colour: #ffffff
  • Unordered Listing Textual content Measurement: 2vh
  • Unordered Listing Line Top: 2.1em

expanding sticky menu

Default Spacing

Then, pass to the spacing settings and provides the module some area.

  • Proper Margin: 88vw (Desktop & Pill), 71vw (Telephone)
  • Best Padding: 6vw (Desktop), 10vw (Pill), 18vw (Telephone)
  • Backside Padding: 4vw (Desktop), 10vw (Pill), 12vw (Telephone)
  • Left Padding: 1vw

expanding sticky menu

Hover Spacing

Alter the values on hover.

  • Proper Margin: 59vw
  • Best Padding: 13vw
  • Backside Padding: 8vw
  • Left Padding: 1vw
  • Proper Padding: 13vw

expanding sticky menu

Border

And to create this quarter circle design, we’re going to switch the highest proper border within the border settings.

  • Best Proper: 50vw

expanding sticky menu

Field Shadow

We’ll additionally upload a field shadow to create intensity at the web page.

  • Field Shadow Blur Energy: 1000px
  • Shadow Colour: rgba(0,0,0,0.68)

expanding sticky menu

Transitions

And reduce the transition period within the complex tab to create a snappy transition.

  • Transition Period: 100ms

expanding sticky menu

Preview

Now that we’ve long past via the entire steps, let’s take a last have a look at the result throughout other display screen sizes.

Instance #1

Desktop

Expanding Sticky Menu

Cell

Expanding Sticky Menu

Instance #2

Desktop

Expanding Sticky Menu

Cell

Expanding Sticky Menu

Ultimate Ideas

On this put up, we’ve proven you methods to create an increasing sticky menu the use of Divi’s Mechanic Layout Pack. We’ve treated two other design examples that you’ll be able to recreate and use on any more or less web page you’re construction! We hove you’re taking part in this ongoing Divi design initiative, the place we attempt to put one thing additional into your design toolbox every week. You probably have any questions or tips, remember to go away a remark within the remark phase under!

When you’re keen to be told extra about Divi and get extra Divi freebies, remember to subscribe to our email newsletter and YouTube channel so that you’ll all the time be one of the vital first folks to grasp and get advantages from this unfastened content material.

The put up How to Create an Expanding Sticky Menu on Hover with Divi gave the impression first on Elegant Themes Blog.

WordPress Web Design

[ continue ]