<div class="d-flex justify-content-between bg-white mx-1 overflow-hidden" style="height: calc(100vh - 52px)">
<div class="d-flex justify-content-between bg-white mx-1" style="height: calc(100vh - 52px); overflow-y: auto;">
<style>
/* Media
======================*/
/* Intro*/
@media all and (max-width: 1200px) {
.intro__subtitle {
font-size: 8px;
}
}
</style>
<!-- Intro -->
<div class="intro" id="Intro">
<div class="container">
<div class="intro__inner">
<div class="intro__onas"></div>
<h2 class="intro__subtitle">ТЕКСТ ТЕКСТ</h2>
.container {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-column-gap: 30px;
grid-row-gap: 30px;
}
@media (max-width: 600px) {
.container {
grid-template-columns: 1fr 1fr;
}
}
.container {
display: flex;
flex-wrap: wrap;
}
.container::after {
content: '';
clear: both;
display: table;
}
.container__item {
...
float: left;
}
<html>
<head></head>
<body>
<head></head>
<div id="container">
...
</div>
</body>
.mmm:hover {
box-shadow: 0 0 8px rgba(0,0,0,0.2);
height: 425px !important;
}
.mmm {
height: auto !important;
}
.mmm:hover {
box-shadow: 0 0 8px rgba(0,0,0,0.2);
height: auto !important;
}
a:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="phno"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, textarea:focus, input[type="submit"]:focus, #comments:focus, select:focus, .toggle-nav button:focus, .search-box button:focus {
outline: 1px dotted #000;
border-bottom: 1px solid #000;
text-decoration: none !important;
}
.nav-service {
padding: 0;
margin: 0;
list-style: none;
position: relative;
}
.nav-service li {
float: left;
margin-left: 10px;
}
.sub-menu {
position: absolute;
top: 20px;
left: 0px;
visibility: hidden;
opacity: 0;
transition: all ease 0.2s
}
.active+.sub-menu {
visibility: visible;
opacity: 1;
}
$('.nav-button').click(function(e) {
e.stopPropagation();
e.preventDefault();
$('.nav-button').not(this).removeClass('active');
$(this).addClass('active').next().delay(200).show();
});
$('html, .close').click(function() {
if ($('.nav-button.active').length > 0) {
$('.nav-button').removeClass('active').next().delay(200).hide()
}
});
<a href="#second-screen" class="scroll-down-btn"></a>
.scroll-down-btn {
/* Тут стили кнопки, картинки, размеры */
position: relative;
bottom: -15px;
animation: bounce 0.4s infinite; /* Анимацию bounce пропишем ниже */
}
@keyframe bounce {
0 {
bottom: 0;
}
100% {
bottom: -15px;
}
}
$('.scroll-down-btn').on('click', function(e) {
e.preventDefault(); // Запрещаем переход по ссылке
var target: $(this).attr('href'), // Берем значение из ссылки как цель id="second-screen"
destination: $(target).offset().top; // Ищем верхнюю координату у нашей цели
$('body,html').animate({scrollTop: destination}, 500); // Плавно проматываем до цели
});