Dark CSS

CSS Modern Button Hover Effects

Facebook
Twitter
WhatsApp

Project demo

html code

				
					<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Amazing Button Hover Effect</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <div class="btn">
    <div class="btn_item">
      <span>HOVER ME</span>
    </div>
  </div>
</body>
</html>
				
			

css code

				
					@import url('https: //fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    background: #f0f0f0;
    display: grid;
    place-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.btn {
    background: white;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.btn_item {
    position: relative;
    padding: 10px 20px;
}

.btn_item span {
    position: relative;
    display: block;
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
    z-index: 1;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.btn_item::before {
    content: '';
    position: absolute;
    transition: transform .3s ease-in-out;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    background: #ff4081;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.btn_item:hover::before {
    transform:
        translate(-50%, -50%) scale(1);
}

.btn_item:hover span {
    color: #fff;
}