Delay dropdown menu appearance (debut)

Tourist
6 0 2

Hi,

Could I please get some help to:

1. delay the appearance and disappearance of the main site dropdown menu when I hover over it, (I've tried to do transitions and transition-delays but to no avail)

2. delay the underline hover appearance for the announcement bar only. (Currently I've managed to delay the underline for the main menu only)

 

I am using the debut theme

and my site is: http://tenderobjects.co

 

Thanks!

0 Likes
Shopify Partner
1145 191 472

Please place this code at the end of theme.scss

.site-nav__dropdown {
display: block;
    transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
    -moz-transition: 1s;
    visibility: hidden;
    opacity: 0;
}
.site-nav--has-dropdown:hover .site-nav__dropdown {
visibility: visible;
    opacity: 1;
}

.announcement-bar__message
{
    position: relative;
}

.announcement-bar__message:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  background-color: #FFF;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}
.announcement-bar__message:hover:before {
  visibility: visible;
  height: 1px;
}
.announcement-bar__message:hover {
text-decoration: none; 
}

 

Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.

Contact Me On : parambabla.soft@gmail.com
Tourist
6 0 2

Hi @paramSoft ,

This worked great, however, do I make the dropdown disappear immediately, while keeping the delay when it appears?

Thanks!

0 Likes
Shopify Partner
1145 191 472

I do not have idea of it

Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.

Contact Me On : parambabla.soft@gmail.com
Excursionist
56 1 9

@jessicaaaaaa Hello, could you expand a little bit on how did you manage to get the menu to dropdown on hover? The tutorials I have been able to find online for the debut theme are very outdated.

 

Thanks,

0 Likes