Created
January 25, 2017 14:14
-
-
Save mattborn/1005c7b2f26f0cbd01b19a957229c413 to your computer and use it in GitHub Desktop.
SVG Experiment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<title>SVG Experiment</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<svg viewBox="0 0 100 95.1"> | |
<g> | |
<polygon points="50,0 65.5,31.3 100,36.3 75,60.7 80.9,95.1 50,78.9 19.1,95.1 25,60.7 0,36.3 34.5,31.3 "/> | |
</g> | |
<circle cx="50" cy="47.6" r="12.6"/> | |
</svg> | |
<script src="scripts.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svg { | |
animation: spinner 2s linear infinite; | |
fill: gray; | |
width: 100px; | |
} | |
svg:hover { fill: purple; } | |
svg circle { fill: white; } | |
@keyframes spinner { | |
to {transform: rotate(360deg);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment