Tip:
Triple click to select all then use ctrl+c to copy. Click outside the box to minimize source window.
HTML (minified)

<div class="item item0"><div class="item0Wrapper"><div class="circle"></div><div class="rect"></div></div></div> <script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js" integrity="sha512-z4OUqw38qNLpn1libAN9BsoDx6nbNFio5lA6CuTp9NlK83b89hgyCVq+N5FdBJptINztxn1Z3SaKSKUS5UP60Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>

JS (minified)

let tl=anime.timeline({loop:true,easing:"easeOutQuad",});tl.add({targets:".circle",height:35,duration:20,}).add({targets:".circle",translateY:-290,easing:"easeOutQuad",duration:500,}).add({targets:".circle",height:70,duration:300,},"-=500").add({targets:".circle",width:[70,35,70],duration:300,},"-=500").add({targets:".circle",translateY:0,duration:500,easing:"easeInQuad",}).add({targets:".circle",width:[70,55],duration:500,},"-=500").add({targets:".circle",height:35,width:70,duration:30,});let tlRect=anime.timeline({loop:true,easing:"easeOutQuad",});tlRect.add({targets:".rect",translateY:-180,rotate:180,width:90,height:90,duration:500,delay:10,}).add({targets:".rect",translateY:0,duration:500,easing:"easeInQuad",}).add({targets:".rect",width:140,height:40,duration:500,easing:"easeInQuad",},"-=500").add({targets:".rect",duration:40,});

SCSS (minified)

:root{--stroke:#61cbf5;--head:#aee8ff;--fill:#61cbf5;--textFill:#000;--border:#61cbf500}.item0{margin-top: 100px;height:400px}.item0Wrapper{height:100%;width:100%;margin:0auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}.circle{margin-top:auto;height:35px;width:70px;background-color:var(--fill);border-radius:50%;border:4pxsolidvar(--border)}.rect{height:40px;width:140px;background-color:var(--fill);border-radius:5px;border:4pxsolid var(--border)}