With the use of coding skill like

HTML (Hypertext Markup Language),

CSS (Cascading Style Sheets) you can do anything on your browser.

This is another kind of new way to express the power of Front end coding. Here you can learn how to make “Circle Hover Effect”.

You just copy and paste into your code editor software and run it on your browser. You Don’t need to write manually it again. Just Copy & Paste.

If you don’t understand clearly so you can watch a youtube video which mentions the end of the page

ad

HTML

<div id="circle-container">
	<div id="cc">
		<div class="circle" id="five"></div>
		<div class="circle" id="four"></div>
		<div class="circle" id="three"></div>
		<div class="circle" id="two"></div>
		<div class="circle" id="one"></div>
	</div>
</div>

CSS

body{
	margin: 0px;

}
#circle-container{
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: lightblue;
	width: 100vw;
	height: 100vh;
	position: relative;
}
.circle{
	width: 50vh;
	height: 50vh;
	position: absolute;
	border-radius: 50%;
}
#one:before{
	content: "Hover Me!";

}
#one{
	background-color: rgba(0,0,225,0.45);
	font-size: 40px;
	font-family: "Oswald", sans-serif;
	letter-spacing: 1.5px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-weight: bold;
	transition: 1s;
}
#two{
	background-color: green;
	transition: 1s;
	opacity: 0.5;
}
#three{
	background-color: red;
	transition: 1s;
	opacity: 0.5;
}
#four{
	background-color: orange;
	transition: 1s;
	opacity: 0.5;
}
#five{
	background-color: green;
	transition: 1s;
	opacity: 0.5;
}
#cc{
	position: relative;
	width: 50vh;
	height: 50vh;
	border-radius: 50%;
	overflow: hidden;
}
#cc:hover #two{
	transform: translate(0px, 75px);
}
#cc:hover #three{
	transform: translate(0px, -75px);
}
#cc:hover #four{
	transform: translate(75px, 0px);
}
#cc:hover #five{
	transform: translate(-75px, 0px);
}

YouTube

Read More👇

Black Hole Pure With CSS

Border To Underline Pure With HTML & CSS

Make Snowfall using CSS & JAVASCRIPT

Tunnel Pure with CSS

Google Chrome Logo Rotate Pure With CSS

Snow Falling Effect Only With CSS

Social Media in a Book With CSS

Cloud Pure With CSS

Categories👇

By yashraj

Leave a Reply

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