TAG
CSS
Result
Run
License
<div class="box"></div>
.box { width: 150px; height: 135px; background-color: #666; position: relative; left: calc(50vw - 50px); top: calc(50vh - 50px); transition: 0.3s; } .box::after { content: "Rollover me"; position: absolute; right: -90px; } .box:hover { transform: translate(20px, 10px); }
Console
expand_less
License
License
by DevDic
Close