@keyframes circle { from { opacity: 0.8; transform: scale(0); } to { opacity: 0; transform: scale(2); } } body { height: calc(100vh - 16px); display: flex; justify-content: center; align-items: center; background: #1c3041; user-select: none; } div { width: 200px; height: 50px; border-radius: 3px; position: relative; text-align: center; font: bold 17px/50px Verdana; color: #1c3041; background: #3abeff; cursor: pointer; overflow: hidden; } .circle { margin: -100px; width: 200px; height: 200px; border-radius: 100px; position: absolute; background: #1c3041; transform: scale(0); pointer-events: none; animation: circle 1s ease; }