Skip to content

Instantly share code, notes, and snippets.

@crestsphere
Created February 15, 2018 19:24
Show Gist options
  • Save crestsphere/9e2882fd504fd22bd395490a6de7c9f2 to your computer and use it in GitHub Desktop.
Save crestsphere/9e2882fd504fd22bd395490a6de7c9f2 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title> Play Time </title>
</head>
<body>
<svg width="1000" height="1000">
<circle cx="100" cy="100" r="50" fill="blue">
<animate attributeName="cx" values="0; 900; 0" dur="3s" fill="freeze" begin="click" repeatCount="indefinite" />
<animate attributeName="fill" values="red; blue; green; pink;" dur="8s" fill="red" begin="click" repeatCount="indefinite" />
</circle>
</svg>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment