Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. #progress_meter { position: relative; display: inline-block; width: 200px; height: 200px; margin: 0; padding: 0; }
  2.  
  3. #progress_meter ul { list-style-type: none; width: 200px; height: 200px; padding: 0; margin: 0; }
  4.  
  5. #progress_meter li { position: absolute; top: 0px; width: 200px; height: 200px; padding: 0; margin: 0; }
  6.  
  7. #progress_meter p { width: 200px; height: 200px; padding: 0; margin: 0; }
  8.  
  9. #progress_meter li p { -webkit-transition: all .7s ease-out; }
  10.  
  11. #progress_meter span { display: block; width: 100px; height: 200px; }
  12.  
  13. #progress_meter ul :nth-child(odd) { clip: rect(0px, 200px, 200px, 100px); }
  14.  
  15. #progress_meter ul :nth-child(even) { clip: rect(0px, 100px, 200px, 0px); }
  16.  
  17. .pie_left { -moz-border-radius-topleft: 100px; -moz-border-radius-bottomleft: 100px; -webkit-border-top-left-radius: 100px; -webkit-border-bottom-left-radius: 100px; border-top-left-radius: 100px; border-bottom-left-radius: 100px; }
  18.  
  19. .pie_right { margin-left: 100px; -moz-border-radius-topright: 100px; -moz-border-radius-bottomright: 100px; -webkit-border-top-right-radius: 100px; -webkit-border-bottom-right-radius: 100px; border-top-right-radius: 100px; border-bottom-right-radius: 100px; }
  20.  
  21. #c1_l span, #c1_r span { background-color: gray; }
  22. #c1_r { background-image: url('../img/green_red.png'); background-size: 218px; }
  23. #c1_l { background-image: url('../img/green_red.png'); background-size: 218px; }
  24. /* progress_meter data (degree value) */
  25. #progress_meter ul #c1_r p { -moz-transform: rotate(180deg); -webkit-transform: rotate(180deg); -o-transform: rotate(180deg); }
  26. #progress_meter ul #c1_l p { -moz-transform: rotate(90deg); -webkit-transform: rotate(90deg); -o-transform: rotate(90deg); }
  27.  
  28. /* progress */
  29. #center-circle { width: 90px; height: 90px; position: absolute; z-index: 1000; top: 55px; left: 55px; background: #fff; text-align: center; border-radius: 50%; -moz-border-radius: 50%; -webkit-border-radius: 50%; -khtml-border-radius: 50%; -o-border-radius: 50%; }
  30. #center-circle span { display: inline-block; margin-top: 50%; line-height: 0; font-weight: bold; color: #22a063; font-size: 30px; }
  31. body { background: #f0f0f0; padding: 20px; }
  32.  
  33. <div id="progress_meter">
  34. <ul>
  35. <li id="c1_r"><p><span class="pie_left"></span></p></li>
  36. <li id="c1_l"><p><span class="pie_right"></span></p></li>
  37. </ul>
  38. <div id="center-circle">
  39. <span>75%</span>
  40. </div>
  41. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement