Blog-Home

This blog is for everybody that loves technology

Overlay content hover effect with html and css only with source code || HTML AND CSS

overlay content hover effect

In this article, I am going to tell you how you can create a very beautiful Box Hover Effect in HTML and CSS with simple steps. you just need to write a simple code of text to create this HTML Box Hover Effect in HTML and CSS. We will use in this code HTML and simple internal CSS.



first of all, you have to create a folder, where you want to create a save file of code and then drag it or open it on your text editor, after that, you have to save this file by giving any name with the extension name .html.
after saved this file, you just write a simple structure of HTML and create content and follow the code which is given below.



Queries Solved:-
css hover effects,box hover effects,how to create content box hover effects,content box with hover effects,hover,css content box hover animation,box with hover effects using css,css image hover effect,hover effects,div hover effects,css hover,css content box hover effects,css effects,css card hover effect,hover effect,html css hover effects,card hover effects css,css image hover effects,css hover effect,css hover effects tutorial,content box hover effects,hover box,card hover effectscss hover effects,css effects,html css hover effects,css image hover effect,css,card hover effects css,css image hover effects,css hover effect,css hover,box hover effects,css content box hover animation,hover,image hover effects with html and css,css hover effects tutorial,css hover animation,hover effects,how to create content box hover effects,image hover effects,css card hover effect,css hover tutorial,css card hover effects,image hover effects in html,css creative box hover effects,tohana,creativenetworks,best computer center in tohana,computer center in tohana, best institute in tohana,creative networks tohana,website designing,web design in tohana,creative,networks,o-level computer course,tohana best institute,creative networks computer center



<!DOCTYPE html>
<html>
<head>
<title>Div Hover Effect in HTML and CSS</title>
</head>
<style type="text/css">
*
{
margin: 0;
padding: 0;
font-family: arial;
}
body
{
width: 100vw;
height: 100vh;
background-color: #112339;
display: flex;
justify-content: center;
align-items: center;
}
.main
{
width: 300px;
height: 300px;
background-color: #999;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
transition: 0.5s;
overflow: hidden;
margin-left: 5px;
margin-right: 5px;
background-size: cover;
background-repeat: no-repeat;
}
.a
{
background-image: url(a.jpeg);
}
.b
{
background-image: url(b.jpeg);
}
.c
{
background-image: url(c.jpeg);
}
.d
{
background-image: url(d.jpeg);
}
.overlay
{
width: 300px;
height: 300px;
background: linear-gradient(to left, rgba(0,0,0,0.7)50%, rgba(0,0,0,0.7)50%);
transition: 0.5s;
position: absolute;
left: 300px;
text-align: center;
}
.main:hover .overlay
{
top: 0;
left: 0;
}
.overlay h2
{
padding-top: 50px;
font-size: 30px;
color: #fff;
}
.overlay p
{
font-size: 14px;
line-height: 25px;
color: #fff;
letter-spacing: 1.5px;
padding: 20px;
}
.main button
{
width: 150px;
height: 40px;
border-radius: 5px;
border: none;
background-color: #fed700;
color: #000;
font-size: 14px;
cursor: pointer;
transition: 0.5s;
font-weight: bold;
}
.main button:hover
{
background-color: #000;
color: #fed700;
}
</style>
<body>
<div class="main a">
<div class="overlay">
<h2>Banana</h2>
<p>Lorem ipsum dolor sit amet elit, sed do eiusmod
tempor incididunt ut labore consectetur.</p>
<button>Order Now</button>
</div>
</div>
<div class="main b">
<div class="overlay">
<h2>Hand</h2>
<p>Lorem ipsum dolor sit amet elit, sed do eiusmod
tempor incididunt ut labore consectetur.</p>
<button>Order Now</button>
</div>
</div>
<div class="main c">
<div class="overlay">
<h2>Chilli</h2>
<p>Lorem ipsum dolor sit amet elit, sed do eiusmod
tempor incididunt ut labore consectetur.</p>
<button>Order Now</button>
</div>
</div>
<div class="main d">
<div class="overlay">
<h2>Banana</h2>
<p>Lorem ipsum dolor sit amet elit, sed do eiusmod
tempor incididunt ut labore consectetur.</p>
<button>Order Now</button>
</div>
</div>
</body>
</html>

 

Related Articles -:

How to Make Box Hover Effect in HTML and CSS with Source code

How to Make Website Template in HTML and CSS With Source Code
Queries Solved:-



css hover effects,box hover effects,how to create content box hover effects,content box with hover effects,hover,css content box hover animation,box with hover effects using css,css image hover effect,hover effects,div hover effects,css hover,css content box hover effects,css effects,css card hover effect,hover effect,html css hover effects,card hover effects css,css image hover effects,css hover effect,css hover effects tutorial,content box hover effects,hover box,card hover effectscss hover effects,css effects,html css hover effects,css image hover effect,css,card hover effects css,css image hover effects,css hover effect,css hover,box hover effects,css content box hover animation,hover,image hover effects with html and css,css hover effects tutorial,css hover animation,hover effects,how to create content box hover effects,image hover effects,css card hover effect,css hover tutorial,css card hover effects,image hover effects in html,css creative box hover effects,tohana,creativenetworks,best computer center in tohana,computer center in tohana, best institute in tohana,creative networks tohana,website designing,web design in tohana,creative,networks,o-level computer course,tohana best institute,creative networks computer center

Leave a Comment

Your email address will not be published. Required fields are marked *

WE CREATES WEBSITES

LEARN WEBSITE DESIGNING COURSE
ONLINE

We will teach you html5, css3, photoshop, bootstrap, media query, wordpress, sql, php.

Sandeep Gahlot
My Recent Posts
Scroll to Top