svg
<svg width="300" height="200" xmlns="http://www.w3.org/2000/svg">
<!-- Unicorn body -->
<ellipse cx="150" cy="120" rx="60" ry="30" fill="white" stroke="black" stroke-width="2"/>
<!-- Unicorn head -->
<path d="M220,110 C230,95 240,100 235,115 C230,125 220,130 210,125 Z" fill="white" stroke="black" stroke-width="2"/>
<!-- Horn -->
<path d="M230,100 L245,75" stroke="gold" stroke-width="4" stroke-linecap="round">
<animate attributeName="stroke-dasharray" values="0,20;20,0" dur="1s" repeatCount="indefinite"/>
</path>
<!-- Mane -->
<path d="M210,105 C200,85 190,95 180,90 C170,85 160,90 150,85" stroke="pink" stroke-width="4" fill="none">
<animate attributeName="d" values="M210,105 C200,85 190,95 180,90 C170,85 160,90 150,85;M210,105 C200,90 190,100 180,95 C170,90 160,95 150,90;M210,105 C200,85 190,95 180,90 C170,85 160,90 150,85" dur="0.6s" repeatCount="indefinite"/>
</path>
<!-- Tail -->
<path d="M90,110 C80,100 70,120 60,110" stroke="pink" stroke-width="4" fill="none">
<animate attributeName="d" values="M90,110 C80,100 70,120 60,110;M90,110 C80,110 70,130 60,120;M90,110 C80,100 70,120 60,110" dur="0.6s" repeatCount="indefinite"/>
</path>
<!-- Legs (with animation) -->
<line x1="120" y1="150" x2="115" y2="180" stroke="black" stroke-width="2">
<animate attributeName="x2" values="115;125;115" dur="0.3s" repeatCount="indefinite"/>
</line>
<line x1="140" y1="150" x2="145" y2="180" stroke="black" stroke-width="2">
<animate attributeName="x2" values="145;135;145" dur="0.3s" repeatCount="indefinite"/>
</line>
<line x1="160" y1="150" x2="155" y2="180" stroke="black" stroke-width="2">
<animate attributeName="x2" values="155;165;155" dur="0.3s" repeatCount="indefinite"/>
</line>
<line x1="180" y1="150" x2="185" y2="180" stroke="black" stroke-width="2">
<animate attributeName="x2" values="185;175;185" dur="0.3s" repeatCount="indefinite"/>
</line>
<!-- Eye -->
<circle cx="225" cy="110" r="2" fill="black"/>
<!-- Motion animation -->
<animateTransform attributeName="transform" type="translate"
from="-100,0" to="350,0" dur="4s" repeatCount="indefinite"/>
</svg>