<div class="glowing-cube"> <div class="top">❤</div> <div> <span style="--i:0;"></span> <span style="--i:1;"></span> <span style="--i:2;"></span> <span style="--i:3;"></span> </div> </div>
.glowing-cube { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; animation: cube-rotate 4s linear infinite; } @keyframes cube-rotate { 0% { transform: rotatex(-30deg) rotatey(0deg); }