"Landing page hero section with search and thank you modal using bootstrap 4 "
Bootstrap 4.1.1 Snippet by Pawan Pandey

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!-- Hero section --> <section id="hero"> <div class="row"> <div class="col-sm-12" id="search"> <form> <div class="input-group mb-3"> <input type="text" class="form-control search-from" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2"> <div class="input-group-append"> <button class="btn btn-secondary btn-lg text-white" type="button">Search</button> <button class="btn btn-secondary btn-lg text-white hide-search" type="button"><i class="fa fa-times"></i></button> </div> </div> </form> </div> </div> <nav class="navbar navbar-expand-lg p-0"> <a class="navbar-brand" href="https://sunlimetech.com/" target="_blank"><span class="font-weight-bold h3">Sunlimetech</span></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav ml-auto"> <li class="nav-item active"> <a class="nav-link" href="https://www.fiverr.com/share/qb8D02">About</a> </li> <li class="nav-item"> <a class="nav-link" href="https://www.fiverr.com/share/qb8D02">Blog</a> </li> <li class="nav-item"> <a class="nav-link" href="https://www.fiverr.com/share/qb8D02">Gallery</a> </li> <li class="nav-item"> <a class="nav-link" href="https://www.fiverr.com/share/qb8D02">Contact</a> </li> <li class="nav-item"> <a class="nav-link toggle-search" href="#!"><i class="fa fa-search"></i></a> </li> </ul> </div> </nav> <div class="hero-heading"> <h1>We like to create awesome designs.</h1> <p>Sunlimetech is an advanced and proactive at the app development and providing you all the ultimate software development services that you need. Sunlimetech ensure to offer you all the required & ultimate services meeting the advanced deadlines and requirements of the field. We believe in providing the ultimate services with quality and meeting all the deadlines, application development industry is at its peak and hitting the new dimensions rapidly.</p> </div> <div class="row mgmt-links-wrapper"> <div class="col-sm-6 col-md-4 col-lg-2"> <a href="https://www.fiverr.com/share/qb8D02" target="_blank"> <div class="link-box"> <i class="fa fa-heart"></i> <p>Visual Design</p> </div> </a> </div> <div class="col-sm-6 col-md-4 col-lg-2"> <a href="https://www.fiverr.com/share/qb8D02" target="_blank"> <div class="link-box"> <i class="fa fa-wrench"></i> <p>Development</p> </div> </a> </div> <div class="col-sm-6 col-md-4 col-lg-2"> <a href="https://www.fiverr.com/share/qb8D02" target="_blank"> <div class="link-box"> <i class="fa fa-users"></i> <p>Management</p> </div> </a> </div> <div class="col-sm-6 col-md-4 col-lg-2"> <a href="https://www.fiverr.com/share/qb8D02" target="_blank"> <div class="link-box"> <i class="fa fa-share-alt"></i> <p>Marketing</p> </div> </a> </div> <div class="col-sm-6 col-md-4 col-lg-2"> <a href="https://www.fiverr.com/share/qb8D02" target="_blank"> <div class="link-box"> <i class="fa fa-cart-plus"></i> <p>eCommerce</p> </div> </a> </div> <div class="col-sm-6 col-md-4 col-lg-2"> <a href="https://www.fiverr.com/share/qb8D02" target="_blank"> <div class="link-box"> <i class="fa fa-eye"></i> <p>Branding</p> </div> </a> </div> </div> </section> <!-- ./Hero section --> <!-- thank you Modal --> <div class="modal fade text-center py-5" style="top:30px" id="thanksModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-md" role="document"> <div class="modal-content"> <div class="modal-body"> <img src="https://sunlimetech.com/portfolio/sunlimeuikit/imgs/s.png" class="modal-img"> <h3 class="pt-5 mb-0 text-secondary">Thanks for your love and support!</h3> <p class="pb-3 text-muted"><small>Hope that you enjoy it well! Check also our site</small></p> <a role="button" class="btn btn-secondary text-white mb-3" href="https://www.sunlimetech.com" target="_blank">www.sunlimetech.com</a> </div> </div> </div> </div> <!-- ./thank you Modal -->
@import url('https://fonts.googleapis.com/css?family=Tajawal'); @import url('https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'); a, a:visited { color: #ffffff !important; webkit-transition: color 0.5s; /* Safari */ transition: color 0.5s; text-decoration: none; } a:hover, a:focus { webkit-transition: color 0.5s; /* Safari */ transition: color 0.5s; text-decoration: none; } #hero { font-family: 'Tajawal', sans-serif; background: #73797f; padding: 20px 50px 41px; color: #ffffff; font-size:1.4rem; } #hero .navbar, #search{ margin-bottom:70px; } #hero .navbar .navbar-nav .nav-item .nav-link { text-decoration: none; font-size: 20px; padding: 0 20px; } #hero .hero-heading { margin-bottom: 50px; max-width: 1100px; } #hero .hero-heading h1 { font-size: 60px; } #hero .mgmt-links-wrapper .link-box { background: #323335; padding: 34px 10px; text-align: center; min-height: 150px; margin-bottom: 10px; -webkit-transition: .5s all ease; -moz-transition: .5s all ease; transition: .5s all ease; } #hero .mgmt-links-wrapper a { color: #ffffff !important; } #hero .mgmt-links-wrapper .link-box:hover { background: #3190dc; -webkit-box-shadow: 0px 5px 8px 0px rgb(79, 91, 97); -moz-box-shadow: 0px 5px 8px 0px rgb(79, 91, 97); box-shadow: 0px 5px 8px 0px rgb(79, 91, 97); } #hero .mgmt-links-wrapper .link-box i { font-size: 40px; margin-bottom: 12px; } #hero .mgmt-links-wrapper .link-box p { font-size: 20px; margin-bottom: 0; } .navbar-toggler { background-color: white; border: 1px solid white; } #hero .search-from{ height: 85px; font-size: 35px; } .slideDown{ animation-name: slideDown; -webkit-animation-name: slideDown; animation-duration: 1s; -webkit-animation-duration: 1s; animation-timing-function: ease; -webkit-animation-timing-function: ease; visibility: visible !important; } @keyframes slideDown { 0% { transform: translateY(-100%); } 50%{ transform: translateY(8%); } 65%{ transform: translateY(-4%); } 80%{ transform: translateY(4%); } 95%{ transform: translateY(-2%); } 100% { transform: translateY(0%); } } @-webkit-keyframes slideDown { 0% { -webkit-transform: translateY(-100%); } 50%{ -webkit-transform: translateY(8%); } 65%{ -webkit-transform: translateY(-4%); } 80%{ -webkit-transform: translateY(4%); } 95%{ -webkit-transform: translateY(-2%); } 100% { -webkit-transform: translateY(0%); } } .modal-img{ margin-top: -85px; width: 33%; border: 5px solid white; border-radius: 50%; padding: 5px; background: #6c757d; } @media (max-width: 767px) { #hero{ padding:20px 20px 40px } #hero .hero-heading h1{ font-size:30px; } }
$(window).on('load', function() { $('#thanksModal').modal('show'); }); $(function() { $("#search").addClass("d-none"); }); $(".toggle-search").click(function() { $("#search").removeClass("d-none"); $("#search").addClass("d-block slideDown"); $(".navbar").removeClass("d-flex slideDown"); $(".navbar").addClass("d-none"); }); $(".hide-search").click(function() { $("#search").removeClass("d-block slideDown"); $(".navbar").addClass("d-flex slideDown"); $("#search").addClass("d-none"); });

Related: See More


Questions / Comments: