Bootstrap 4: Delete confirmation modal for list of items
Aug 05, 2020 | 737 views
Refer to
Comments: 0Tags: Bootstrap
Aug 05, 2020 | 737 views
Refer to
Comments: 0Jul 29, 2020 | 674 views
Refer to here.
CSS code:
h1,
.navbar-brand,
.navbar-nav a {
font-family: 'Merriweather', serif;
}
check here to look which font you like: CSS Font stack
Comments: 0
Jul 29, 2020 | 827 views
So my code was reference to: Stackoverflow
and its relative code: HERE
CSS:
.navbar-tran {
transition: top 1.0s ease;
}
.navbar-hide {
top: -56px;
}
HTML:
<nav class="navbar navbar-tran navbar-expand-lg sticky-top navbar-dark bg-dark">
...
jQuery:
/* When the user scrolls down, hide the navbar.
* When the user scrolls up, show the navbar */
// document ready
(function ($) {
var previousScroll = 56;
// scroll functions
$(window).scroll(function(e) {
// add/remove class to navbar when scrolling to hide/show
var scroll = $(window).scrollTop();
if (scroll >= previousScroll+100) {
$('.navbar').addClass("navbar-hide");
previousScroll = scroll;
}else if (scroll+100 < previousScroll) {
$('.navbar').removeClass("navbar-hide");
previousScroll = scroll;
}
});
})(jQuery);
For navbar refer to here.
Comments: 0Jul 26, 2020 | 741 views