Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. <div style={{width: '500px', position:'relative'}}>
  2. <Tippy
  3. content={
  4. <div>
  5. <h5>{clusterId}</h5>
  6. <p>Total Devices: {totalNodes}</p>
  7. <hr style={{ borderColor: 'white' }} />
  8. <ol style={{ textAlign: 'left', paddingLeft: '10pt' }}>
  9. <li>Good: {good}</li>
  10. <li>Need Attention: {attention}</li>
  11. <li>Monitor Closely: {monitor}</li>
  12. </ol>
  13. </div>
  14. }
  15. appendTo='parent'
  16. arrow={true}
  17. animation="fade"
  18. theme="bootstrap"
  19. duration={0}
  20. hideOnClick={false}
  21. >
  22. <div
  23. className="pin bounce"
  24. style={{ backgroundColor: color, cursor: 'pointer' }}
  25. onClick={handleClick}
  26. />
  27. </Tippy>
  28. <div className="pulse" />
  29. </div>
  30.  
  31. .pin {
  32. width: 30px;
  33. height: 30px;
  34. border-radius: 50% 50% 50% 0;
  35. background: #00cae9;
  36. position: absolute;
  37. transform: rotate(-45deg);
  38. left: 50%;
  39. top: 50%;
  40. margin: -20px 0 0 -20px;
  41. }
  42. .pin:after {
  43. content: "";
  44. width: 14px;
  45. height: 14px;
  46. margin: 8px 0 0 8px;
  47. background: #e6e6e6;
  48. position: absolute;
  49. border-radius: 50%;
  50. }
  51.  
  52. .bounce {
  53. animation-name: bounce;
  54. animation-fill-mode: both;
  55. animation-duration: 1s;
  56. }
  57.  
  58. .pulse {
  59. background: #d6d4d4;
  60. border-radius: 50%;
  61. height: 14px;
  62. width: 14px;
  63. position: absolute;
  64. left: 50%;
  65. top: 50%;
  66. margin: 11px 0px 0px -12px;
  67. transform: rotateX(55deg);
  68. z-index: -2;
  69. }
  70. .pulse:after {
  71. content: "";
  72. border-radius: 50%;
  73. height: 40px;
  74. width: 40px;
  75. position: absolute;
  76. margin: -13px 0 0 -13px;
  77. animation: pulsate 1s ease-out;
  78. animation-iteration-count: infinite;
  79. opacity: 0;
  80. box-shadow: 0 0 1px 2px #00cae9;
  81. animation-delay: 1.1s;
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement