Skip to content

Instantly share code, notes, and snippets.

@kejun
Created May 5, 2014 03:18
Show Gist options
  • Save kejun/11528125 to your computer and use it in GitHub Desktop.
Save kejun/11528125 to your computer and use it in GitHub Desktop.
Untitled
<div style="width:160px;height:160px;">
<svg width="100%" height="100%" viewBox="0 0 10 10">
<g stroke="#000" stroke-width="1.5px" stroke-linecap="round">
<path d="M1,2 L9,2">
<animate dur=".5s" fill="freeze" attributeName="d" to="M2,2 L8,8" />
</path>
<path d="M1,5 L9,5">
<animate dur=".5s" fill="freeze" attributeName="opacity" to="0" />
</path>
<path d="M1,8 L9,8">
<animate dur=".5s" fill="freeze" attributeName="d" to="M2,8 L8,2" />
</path>
</g>
</svg>
</div>
<div style="width:160px;height:160px;">
<svg width="100%" height="100%" viewBox="0 0 10 10">
<g stroke="#000" stroke-width="1.5px" stroke-linecap="round">
<path d="M2,2 L8,8"/>
<path d="M1,5 L9,5" opacity="0" />
<path d="M2,8 L8,2"/>
</g>
</svg>
</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment