JSFiddle - React, Tailwind, and code Playground
by Brodingo
HTML
<div id="box">
<div id="one">
<div id="two">
<div id="three"></div>
</div>
</div>
</div>
CSS
#box {
position: relative;
width: 100px;
height: 100px;
border: 3px solid #dd3;
border-radius: 100px;
}
#box div {
position: absolute;
}
#one {
left: 100%;
top: 50%;
width: 80px;
height: 0;
border-top: 3px dotted #dd3;
}
#two {
top: 0;
right: 0;
width: 0;
height: 200px;
border-right: 3px dotted #dd3;
}
#three {
width: 40px;
height: 40px;
left: -20px;
top: 100%;
border: 3px solid #dd3;
border-radius: 40px;
}
JavaScript
$('#one').delay(800).animate({width: 200});
$('#two').delay(400).animate({height: 400});