Last active
August 15, 2018 12:15
-
-
Save khazeamo/ca930c97d5d3a9189219e4b8e66e8085 to your computer and use it in GitHub Desktop.
Circular Progress (SVG & CSS)
This file contains 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
https://codepen.io/xgad/post/svg-radial-progress-meters |
This file contains 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
.circular-progress { | |
transform: rotate(-90deg) | |
} |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<link rel="stylesheet" href="circularprogress.css"> | |
<title>Document</title> | |
</head> | |
<body> | |
<svg class="circular-progress" width="120" height="120" viewBox="0 0 120 120"> | |
<circle cx="60" cy="60" r="54" fill="none" stroke="#e6e6e6" stroke-width="12" /> | |
<circle cx="60" cy="60" r="54" fill="none" stroke="deepskyblue" stroke-width="12" | |
stroke-dasharray="339.292" stroke-dashoffset="135.717" /> | |
</svg> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment