Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. ------------------- THIS IS THE HTML ---------------------
  2.  
  3. <!-- alert image -->
  4. <div id="alert-image-wrap">
  5. <div id="alert-image">{img}</div>
  6. </div>
  7.  
  8. <!-- main alert box window -->
  9. <div id="alert-text-wrap">
  10.  
  11. <!-- alert text -->
  12. <div id="alert-text">
  13.  
  14. <!-- alert message -->
  15. <!-- messageTemplate will be replaced with your message template -->
  16. <!-- for example : {name} is now following! or {name} donated {amount} -->
  17.  
  18. <div id="alert-message">{name}</div>
  19.  
  20. </div>
  21.  
  22. </div>
  23.  
  24.  
  25. --------------- THIS IS THE CSS ----------------------
  26.  
  27.  
  28. .widget-AlertBox {
  29. position: relative;
  30. }
  31. body,
  32. html {
  33. height: 100%;
  34. width: 100%;
  35. overflow: hidden;
  36. }
  37. #wrap {
  38. position: relative;
  39. height: 100%;
  40. width: 100%;
  41. }
  42. #alert-box {
  43. height: 100%;
  44. width: 100%;
  45. position: absolute;
  46. }
  47. #alert-box.hidden,
  48. .hidden {
  49. opacity: 0;
  50. }
  51. #alert-text {
  52. padding: 20px;
  53. }
  54. #alert-message,
  55. #alert-user-message {
  56. text-align: center;
  57. }
  58. #alert-user-message img {
  59. vertical-align: middle;
  60. height: 1em;
  61. }
  62. #alert-image {
  63. position: relative;
  64. }
  65. #alert-image video {
  66. width: 100%;
  67. height: 100%;
  68. position: absolute;
  69. top: 0;
  70. left: 0;
  71. }
  72. #alert-message {
  73. display: inline-block;
  74. animation-duration: 3s;
  75. animation-name: fade;
  76. animation-delay: 3s;
  77. opacity: 0;
  78. width: 375px;
  79. height: 160px;
  80. margin-left: 285px;
  81. margin-top: 90px;
  82. display: flex;
  83. align-items: center;
  84. justify-content: center;
  85. }
  86.  
  87. @keyframes fade {
  88. 0% {opacity: 1}
  89. 90% {opacity: 1}
  90. 100% {opacity: 0}
  91. }
  92.  
  93. #alert-image {
  94. z-index: 6;
  95. position: relative;
  96. }
  97. #alert-text {
  98. z-index: 6;
  99. position: relative;
  100. }
  101. #alert-text-wrap {
  102. z-index: 6;
  103. position: relative;
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement