Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. <ul class="progress">
  2. <!-- Item -->
  3. <li data-name="HTML & CSS" data-percent="87%"> <svg viewBox="-10 -10 220 220">
  4. <g fill="none" stroke-width="2" transform="translate(100,100)">
  5. <path d="M 0,-100 A 100,100 0 0,1 86.6,-50" stroke="url(#cl1)"/>
  6. <path d="M 86.6,-50 A 100,100 0 0,1 86.6,50" stroke="url(#cl2)"/>
  7. <path d="M 86.6,50 A 100,100 0 0,1 0,100" stroke="url(#cl3)"/>
  8. <path d="M 0,100 A 100,100 0 0,1 -86.6,50" stroke="url(#cl4)"/>
  9. <path d="M -86.6,50 A 100,100 0 0,1 -86.6,-50" stroke="url(#cl5)"/>
  10. <path d="M -86.6,-50 A 100,100 0 0,1 0,-100" stroke="url(#cl6)"/>
  11. </g>
  12. </svg> <svg viewBox="-10 -10 220 220">
  13. <path d="M200,100 C200,44.771525 155.228475,0 100,0 C44.771525,0 0,44.771525 0,100 C0,155.228475 44.771525,200 100,200 C155.228475,200 200,155.228475 200,100 Z" stroke-dashoffset="547"></path>
  14. </svg> </li>
  15. </ul>
  16.  
  17. <!-- Defining Angle Gradient Colors -->
  18. <svg width="0" height="0">
  19. <defs>
  20. <linearGradient id="cl1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">
  21. <stop stop-color="#618099"/>
  22. <stop offset="100%" stop-color="#8e6677"/>
  23. </linearGradient>
  24. <linearGradient id="cl2" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="0" y2="1">
  25. <stop stop-color="#8e6677"/>
  26. <stop offset="100%" stop-color="#9b5e67"/>
  27. </linearGradient>
  28. <linearGradient id="cl3" gradientUnits="objectBoundingBox" x1="1" y1="0" x2="0" y2="1">
  29. <stop stop-color="#9b5e67"/>
  30. <stop offset="100%" stop-color="#9c787a"/>
  31. </linearGradient>
  32. <linearGradient id="cl4" gradientUnits="objectBoundingBox" x1="1" y1="1" x2="0" y2="0">
  33. <stop stop-color="#9c787a"/>
  34. <stop offset="100%" stop-color="#817a94"/>
  35. </linearGradient>
  36. <linearGradient id="cl5" gradientUnits="objectBoundingBox" x1="0" y1="1" x2="0" y2="0">
  37. <stop stop-color="#817a94"/>
  38. <stop offset="100%" stop-color="#498a98"/>
  39. </linearGradient>
  40. <linearGradient id="cl6" gradientUnits="objectBoundingBox" x1="0" y1="1" x2="1" y2="0">
  41. <stop stop-color="#498a98"/>
  42. <stop offset="100%" stop-color="#618099"/>
  43. </linearGradient>
  44. </defs>
  45. </svg>
  46.  
  47. /* Progress *//* Load animation */
  48.  
  49. @-webkit-keyframes
  50. load { 0% {
  51. stroke-dashoffset:0
  52. }
  53. }
  54. @-moz-keyframes
  55. load { 0% {
  56. stroke-dashoffset:0
  57. }
  58. }
  59. @keyframes
  60. load { 0% {
  61. stroke-dashoffset:0
  62. }
  63. }
  64.  
  65. .progress {
  66. position: relative;
  67. display: inline-block;
  68. padding: 0;
  69. text-align: center;
  70. overflow: visible;
  71. box-shadow: none;
  72. background-image: none;
  73. background-color: transparent;
  74. }
  75.  
  76. svg:not(:root) {
  77. overflow: visible
  78. }
  79.  
  80. /* Item */
  81.  
  82. .progress>li {
  83. display: inline-block;
  84. position: relative;
  85. text-align: center;
  86. color: #93A2AC;
  87. font-family: Lato;
  88. font-weight: 100;
  89. margin: 2rem;
  90. }
  91.  
  92. .progress>li:before {
  93. content: attr(data-name);
  94. position: absolute;
  95. width: 100%;
  96. bottom: -2rem;
  97. font-weight: 400;
  98. }
  99.  
  100. .progress>li:after {
  101. content: attr(data-percent);
  102. position: absolute;
  103. width: 100%;
  104. top: 3.7rem;
  105. left: 0;
  106. font-size: 2rem;
  107. text-align: center;
  108. }
  109.  
  110. .progress svg {
  111. width: 10rem;
  112. height: 10rem;
  113. }
  114.  
  115. .progress svg:nth-child(2) {
  116. position: absolute;
  117. left: 0;
  118. top: 0;
  119. transform: rotate(-90deg);
  120. -webkit-transform: rotate(-90deg);
  121. -moz-transform: rotate(-90deg);
  122. -ms-transform: rotate(-90deg);
  123. }
  124.  
  125. .progress svg:nth-child(2) path {
  126. fill: none;
  127. stroke-width: 10;
  128. stroke-dasharray: 600;
  129. stroke: rgba(249, 249, 249, 1);
  130. -webkit-animation: load 5s;
  131. -moz-animation: load 5s;
  132. -o-animation: load 5s;
  133. animation: load 5s;
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement