JSFiddle - React, Tailwind, and code Playground

by ChrisStanyon

HTML

<div id="wrapper">
    <div id="circle">&nbsp;</div>
</div>

CSS

#wrapper {
    width: 25rem;
    height: 25rem;
    position: relative;
    background-color: grey;
}

#circle {
    width: 15rem;
    height: 15rem;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -7.5rem;
    margin-top: -7.5rem;
    border-radius: 50%;
    background-color: red;
    transition: opacity 2s;
    opacity: 0.3;
}

#circle:hover {
    opacity: 0.8;
    cursor: pointer;
}