Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Commit

Permalink
fix: add variable for fadeIn velocity.
Browse files Browse the repository at this point in the history
  • Loading branch information
GusBaamonde committed Feb 27, 2019
1 parent 954661d commit a041ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$("body").on({
mouseenter: function() {
var submenu = $(this).find(".sub-menu"),
$delayFade = 500;
var submenu = $(this).find(".sub-menu");

if (submenu && submenu[0].children.length) {
$('.header-main').addClass('header-open');
}
Expand All @@ -24,7 +24,7 @@ $("body").on('click', '#close-menu', function() {
});

// modals

var $delayFade = 500;
$("#btn-modal-large").click(function() {
$("#modal-large").fadeIn($delayFade);
});
Expand Down

0 comments on commit a041ed6

Please sign in to comment.