Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. .clock {
  2. border-radius: 50%;
  3. background: #fff url(zdjecia/zegar.svg) no-repeat center;
  4. background-size: 88%;
  5. width: 200px;
  6. height: 200px;
  7. position: relative;
  8. float: left;
  9. margin-top: 2%;
  10. margin-left: 15%;
  11. }
  12.  
  13. .clock:after {
  14. background: #000;
  15. border-radius: 50%;
  16. content: "";
  17. position: absolute;
  18. left: 50%;
  19. top: 50%;
  20. transform: translate(-50%, -50%);
  21. width: 5%;
  22. height: 5%;
  23. z-index: 10;
  24. }
  25. .minutes-container, .hours-container, .seconds-container {
  26. position: absolute;
  27. top: 0;
  28. right: 0;
  29. bottom: 0;
  30. left: 0;
  31. }
  32. .hours-container{
  33. animation: rotate 43200s infinite linear;
  34. }
  35. .minutes-container{
  36. animation: rotate 3600s infinite linear;
  37. }
  38. .seconds-container{
  39. animation: rotate 60s infinite linear;
  40. }
  41. .hours {
  42. background: #000;
  43. height: 20%;
  44. left: 48.75%;
  45. position: absolute;
  46. top: 30%;
  47. transform-origin: 50% 100%;
  48. width: 2.5%;
  49. }
  50. .minutes {
  51. background: #000;
  52. height: 40%;
  53. left: 49%;
  54. position: absolute;
  55. top: 10%;
  56. transform-origin: 50% 100%;
  57. width: 2%;
  58. }
  59. .seconds{
  60. background: #000;
  61. height: 45%;
  62. left: 49.5%;
  63. position: absolute;
  64. top: 14%;
  65. transform-origin: 50% 80%;
  66. width: 1%;
  67. z-index: 8;
  68. }
  69. @keyframes rotate { 100% { transform: rotateZ(360deg); } }
  70. main{
  71. float: left;
  72. width: 95%;
  73. min-height: 1500px;
  74. margin: 2.5%;
  75. text-align: center;
  76. background-image:linear-gradient(to bottom, #0B2325, #010112)
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement