Home
Code Library
Templates
Contact Us
Hover Box Style 2
Date
: August 30, 2023
Developed By:
Angus Nunes
Services Section
1
UI/UX Design
2
Web Development
3
Graphic Design
4
Web Design
5
UI/UX Design
6
Multimedia Communication
View Source
HTML
CSS
Links
HTML
Copy
<section class="hc-2-section"> <div class="hc-2-container"> <h3 class="hc-2-section-title">Services Section</h3> <div class="hover-row"> <!-- 1 --> <div class="hover-div"> <a class="hc-2-hover-link" id="hover-link" href=""> <div class="img-div"> <div class="img-base"> <img src="https://nuitwebtek.com/wp-content/uploads/2023/08/comp.png" alt="" class="img-hero"> </div> </div> <div class="hover-id hover-1"> <h3 class="hc-2-feature-number">1</h3> </div> <div class="hc-2-content"> <h3 class="hc-2-content-desc">UI/UX Design</h3> </div> </a> </div> <!-- 2 --> <div class="hover-div"> <a class="hc-2-hover-link" id="hover-link" href=""> <div class="img-div"> <div class="img-base"> <img src="https://nuitwebtek.com/wp-content/uploads/2023/08/cloud.png" alt="" class="img-hero"> </div> </div> <div class="hover-id hover-2"> <h3 class="hc-2-feature-number">2</h3> </div> <div class="hc-2-content"> <h3 class="hc-2-content-desc">Web Development</h3> </div> </a> </div> <!-- 3 --> <div class="hover-div"> <a class="hc-2-hover-link" id="hover-link" href=""> <div class="img-div"> <div class="img-base"> <img src="https://nuitwebtek.com/wp-content/uploads/2023/08/comp.png" alt="" class="img-hero"> </div> </div> <div class="hover-id hover-3"> <h3 class="hc-2-feature-number">3</h3> </div> <div class="hc-2-content"> <h3 class="hc-2-content-desc">Graphic Design</h3> </div> </a> </div> <!-- 4 --> <div class="hover-div"> <a class="hc-2-hover-link" id="hover-link" href=""> <div class="img-div"> <div class="img-base"> <img src="https://nuitwebtek.com/wp-content/uploads/2023/08/cloud.png" alt="" class="img-hero"> </div> </div> <div class="hover-id hover-4"> <h3 class="hc-2-feature-number">4</h3> </div> <div class="hc-2-content"> <h3 class="hc-2-content-desc">Web Design</h3> </div> </a> </div> <!-- 5 --> <div class="hover-div"> <a class="hc-2-hover-link" id="hover-link" href=""> <div class="img-div"> <div class="img-base"> <img src="https://nuitwebtek.com/wp-content/uploads/2023/08/comp.png" alt="" class="img-hero"> </div> </div> <div class="hover-id hover-5"> <h3 class="hc-2-feature-number">5</h3> </div> <div class="hc-2-content"> <h3 class="hc-2-content-desc">UI/UX Design</h3> </div> </a> </div> <!-- 6 --> <div class="hover-div"> <a class="hc-2-hover-link" id="hover-link" href=""> <div class="img-div"> <div class="img-base"> <img src="https://nuitwebtek.com/wp-content/uploads/2023/08/cloud.png" alt="" class="img-hero"> </div> </div> <div class="hover-id hover-6"> <h3 class="hc-2-feature-number">6</h3> </div> <div class="hc-2-content"> <h3 class="hc-2-content-desc">Multimedia Communication</h3> </div> </a> </div> </div> </div> </section>
CSS
Copy
#hover-link.hc-2-hover-link{ text-decoration: none; } .hc-2-container{ max-width: 80%; margin: auto; } .hc-2-container .hc-2-section-title{ color: #3D008E; text-align: center; font-family: 'Roboto'; text-align: center; margin-block:20px; font-size: 40px; font-weight: 600; line-height: 1.1; } .hc-2-container .hc-2-feature-number{ font-family: 'Roboto'; text-align: center; font-size: 20px; margin: auto; } .hc-2-container .hc-2-content-desc{ font-family: 'Roboto'; font-size: 20px; text-align: center; margin: auto; } .hover-row { display: grid; grid-template-columns: 33% 33% 33%; width: 100%; margin: auto; } .hover-div{ display: flex; justify-content: center; transition: 1.5s; } .img-div{ width: 280px; height: 155px; border-radius: 10px; border: 1.3px solid #191616; background: #FFF; display: flex; justify-content: center; align-items: center; background-image: url(https://nuitwebtek.com/wp-content/uploads/2023/08/hover-bg.png); background-size: cover; background-repeat: no-repeat; } .hover-1, .hover-2, .hover-3, .hover-4, .hover-5, .hover-6, .hc-2-feature-number{ transition: 0.5s; } .img-div, .content{ transition: 0.5s; } .hover-div:hover{ transform: scale(1.05); transition: 1.5s; .img-div, .content{ box-shadow: 0px 0px 12px 0px #3e3e3e; transition: 0.5s; } .hover-1{ background: #191616; transition: 0.5s; } .hover-2{ background: #17C5CC; transition: 0.5s; } .hc-2-feature-number{ color: white; transition: 0.5s; } .hover-3{ background: #F03048; transition: 0.5s; } .hover-4{ background: #FFD740; transition: 0.5s; } .hover-5{ background: #00cc41; transition: 0.5s; } .hover-6{ background: #184F78; transition: 0.5s; } } .img-hero{ width: 100px; height: 95px; object-fit: contain; } .hover-id{ width: 65px; height: 65px; display: flex; align-items: center; justify-content: center; border-radius: 10px; position: relative; z-index: 1; top: -30px; left: 105px; background: white; } .hover-1 { border: 1.3px solid #191616; } .hover-1:hover{ background: #191616; color: white; } .hover-2{ border: 1.3px solid #17C5CC; } .hover-3{ border: 1.3px solid #F03048; } .hover-4{ border: 1.3px solid #FFD740; } .hover-5{ border: 1.3px solid #00cc41; } .hover-6{ border: 1.3px solid #184F78; } .hc-2-content{ width: 100%; height: 76px; border-radius: 8px; border: 1.3px solid #191616; background: #FFF; display: flex; justify-content: center; align-items: center; position: relative; top: -50px; } @media (max-width:1024px){ .hover-row { grid-template-columns: 50% 50%; } } @media (max-width:600px){ #hover-link.hc-2-hover-link { width: 80%; display: flex; flex-wrap: wrap; justify-content: center; } .hover-row { grid-template-columns: 100%; margin: 50px 0 0; } .hover-div{ margin-bottom: 2rem; transition: 0s; } .img-div { width: 100%; height: 130px; } .hc-2-content { height: 75px; top: -25px; margin: auto; } .hover-id { width: 41px; height: 41px; top: -13px; left: inherit; } .hover-div .hc-2-content-desc{ font-size: 16px; } .img-hero { width: 100px; height: 55px; object-fit: contain; } .img-div, .content{ box-shadow: 0px 0px 10px 0px #3e3e3e; } .hover-1{ background: #191616; } .hover-2{ background: #17C5CC; } .hc-2-feature-number{ color: white; } .hover-3{ background: #F03048; } .hover-4{ background: #FFD740; } .hover-5{ background: #00cc41; } .hover-6{ background: #184F78; } .hc-2-container .hc-2-section-title{ font-size: 28px; } }
Links
Copy
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap" rel="stylesheet">
New
×