Guest User

Untitled

a guest
Oct 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. <svg>
  2. <defs>
  3. <pattern id="dotPattern"
  4. x="0" y="0" width="10" height="10"
  5. patternUnits="userSpaceOnUse">
  6. <circle class="bgDot" cx="5" cy="5" r="2" />
  7. </pattern>
  8.  
  9. <radialGradient id="backHoleBelowClock" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
  10. <stop offset="50%" style="stop-color:rgb(0,0,0);stop-opacity:0.7"/>
  11. <stop offset="100%" style="stop-color:rgb(0,0,0);stop-opacity:0"/>
  12. </radialGradient>
  13.  
  14. <radialGradient id="blackVignette" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
  15. <stop offset="40%" style="stop-color:rgb(0,0,0);stop-opacity:0" />
  16. <stop offset="100%" style="stop-color:rgb(0,0,0);stop-opacity:1" />
  17. </radialGradient>
  18.  
  19. <filter id="glow">
  20. <feGaussianBlur stdDeviation="2.5" result="coloredBlur"/>
  21. <feMerge>
  22. <feMergeNode in="coloredBlur"/>
  23. <feMergeNode in="SourceGraphic"/>
  24. </feMerge>
  25. </filter>
  26.  
  27. <filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
  28. <feGaussianBlur in="SourceAlpha" stdDeviation="3" result="shadow"/>
  29. <feOffset dx="1" dy="1"/>
  30. <feMerge>
  31. <feMergeNode/>
  32. <feMergeNode in="SourceGraphic"/>
  33. </feMerge>
  34. </filter>
  35.  
  36. </defs>
  37.  
  38. <!-- Background objects -->
  39. <rect x="0" y="0" width="100%" height="100%" style="stroke: #000000; fill: url(#dotPattern);" />
  40. <ellipse cx="500" cy="240" rx="300" ry="300" fill="url(#backHoleBelowClock)"/>
  41. <ellipse cx="500" cy="240" rx="600" ry="600" fill="url(#blackVignette)"/>
  42.  
  43. <!-- Clock objects -->
  44. <circle class="clockCircle hour" cx="500" cy="240" r="150" stroke-width="6" />
  45. <path id="arcHour" class="clockArc hour" stroke-width="6" stroke-linecap="round" filter="url(#glow)" />
  46. <circle class="clockDot hour" r="8" filter="url(#glow)" />
  47.  
  48. <circle class="clockCircle minute" cx="500" cy="240" r="170" stroke-width="3" />
  49. <path id="arcMinute" class="clockArc minute" stroke-width="3" stroke-linecap="round" filter="url(#glow)" />
  50. <circle class="clockDot minute" r="5" filter="url(#glow)" />
  51.  
  52. <!-- Caption objects -->
  53. <text id="time" class="caption timeText" x="500" y="240" stroke-width="0" text-anchor="middle" alignment-baseline="middle" filter="url(#shadow)"></text>
  54.  
  55. <text id="day" class="caption dayText" x="300" y="210" stroke-width="0" text-anchor="end" alignment-baseline="middle" filter="url(#shadow)"></text>
  56. <text id="date" class="caption dateText" x="300" y="250" stroke-width="0" text-anchor="end" alignment-baseline="middle" filter="url(#shadow)"></text>
  57.  
  58. </svg>
Add Comment
Please, Sign In to add comment