42 lines
784 B
Svelte
42 lines
784 B
Svelte
|
<svg
|
||
|
version="1.1"
|
||
|
xmlns="http://www.w3.org/2000/svg"
|
||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||
|
viewBox="0 0 100 100"
|
||
|
xml:space="preserve"
|
||
|
>
|
||
|
<rect fill="none" stroke="currentColor" stroke-width="4" x="25" y="25" width="50" height="50">
|
||
|
<animateTransform
|
||
|
attributeName="transform"
|
||
|
dur="0.5s"
|
||
|
from="0 50 50"
|
||
|
to="180 50 50"
|
||
|
type="rotate"
|
||
|
id="strokeBox"
|
||
|
attributeType="XML"
|
||
|
begin="rectBox.end"
|
||
|
/>
|
||
|
</rect>
|
||
|
<rect x="27" y="27" fill="currentColor" width="46" height="50">
|
||
|
<animate
|
||
|
attributeName="height"
|
||
|
dur="1.3s"
|
||
|
attributeType="XML"
|
||
|
from="50"
|
||
|
to="0"
|
||
|
id="rectBox"
|
||
|
fill="freeze"
|
||
|
begin="0s;strokeBox.end"
|
||
|
/>
|
||
|
</rect>
|
||
|
</svg>
|
||
|
|
||
|
<style>
|
||
|
svg {
|
||
|
height: 2em;
|
||
|
position: relative;
|
||
|
top: 0.6em;
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
</style>
|