HTML CODE | IMAGE DECORATION

HTML CODE FOR DECORATION OF IMAGE

HTML CODE | IMAGE DECORATION
directly paste in your post HTML tab and change image location ( you can choose any image which is already published on your web, right-click the image and select copy image address), publish.
HTML CODE
<head>
<style>
*
{
margin: 0px;
padding: 0px;
}
.container
{
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-item: center;
padding: 0px 0px 50px;
flex-wrap: wrap;
}
.box
{
border: 2px solid black;
position: relative;
height: 300px;
width: 300px;
border-radius: 50%;
overflow: hidden;
}
.box img
{
height: 100%;
width: 100%;
}
.inside
{
height: 100%;
width: 100%;
border-width: 20px;
border-style: solid;
box-sizing: border-box;
border-color: #353535 #FEC007 #FEC007 #353535;
position: absolute;
top: 0;
left: 0;
border-radius: 50%;
transition: transform 1s;
z-index: 10;
}
.box:hover .inside
{
transform: rotate(180deg);
}
.text
{
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(to right, #33A727, #7FCC61);
color: white;
font-size: 20px;
font-family: Verdana;
font-weight: bold;
text-transform: uppercase;
letter-spacing: 2px;
position: absolute;
top: 0;
left: 0;
opacity: 0;
transition: opacity 1s;
}
.box:hover .text
{
opacity: 1;
}
</style>
<script> </script>
</head>
<body>
<div class="container">
<div class="box">
<img src="https://1.bp.blogspot.com/-aLZBIx93BVg/Xrd2JEEA0nI/AAAAAAAAAbc/xy9zFp-ax9YPvhnTYz7l9rrdS_az3ND1wCEwYBhgL/s1600/1.jpg" />
<div class="inside">
</div>
<div class="text">
RAJPUT REGIMENT
</div>
</div>
</div>
</body>

READ MORE 

Post a comment

0 Comments