bobvids

Twitch "YOU DIED" Fullscreen Alert

Jun 20th, 2025
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | Gaming | 0 0
  1. -----HTML-----
  2.  
  3. <div class="alert_outer-container has-animation">
  4. <div class="alert_widget-container">
  5. <div class="alert_text-container">
  6. <div>
  7. <p class="alert_text"></p>
  8. <p class="alert_secondary-text">
  9. {cheer_message}
  10. </p>
  11. </div>
  12. <div class="alert_image-container">
  13. <img id="main-image" class="alert_image" alt="Alert image" src="https://static-cdn.jtvnw.net/alert-asset/v2/22001186/image/2whKxL985q1uvVakkLStVosLzoq/youdiedbg.png">
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18.  
  19. -----CSS-----
  20.  
  21. @font-face {
  22. font-family: "Textile";
  23. src: url("https://db.onlinewebfonts.com/t/653f0331330580a51716e5cbb69d8db9.eot");
  24. src: url("https://db.onlinewebfonts.com/t/653f0331330580a51716e5cbb69d8db9.eot?#iefix")format("embedded-opentype"),
  25. url("https://db.onlinewebfonts.com/t/653f0331330580a51716e5cbb69d8db9.woff2")format("woff2"),
  26. url("https://db.onlinewebfonts.com/t/653f0331330580a51716e5cbb69d8db9.woff")format("woff"),
  27. url("https://db.onlinewebfonts.com/t/653f0331330580a51716e5cbb69d8db9.ttf")format("truetype"),
  28. url("https://db.onlinewebfonts.com/t/653f0331330580a51716e5cbb69d8db9.svg#Textile")format("svg");
  29. font-weight: normal;
  30. font-style: normal;
  31. font-display: swap;
  32. }
  33.  
  34. .eb-garamond- {
  35. font-family: "EB Garamond", serif;
  36. font-optical-sizing: auto;
  37. font-weight: normal;
  38. font-style: normal;
  39. }
  40.  
  41. html {
  42. overflow: hidden;
  43. height: 100%;
  44. }
  45.  
  46. body {
  47. height: 100%;
  48. }
  49.  
  50. .alert_outer-container {
  51. display: flex;
  52. justify-content: center;
  53. position: relative;
  54. padding: 1rem;
  55. height: 100%;
  56. }
  57.  
  58. .alert_outer-container.playing {
  59. animation: 7s alert-animation ease-in-out forwards;
  60. }
  61.  
  62. .alert_widget-container {
  63. display: flex;
  64. background-color: #FFFFFF00;
  65. width: 100%;
  66. height: 100%;
  67. padding: 0px;
  68. border-radius: 0px;
  69. }
  70.  
  71. .alert_image-container {
  72. display: flex;
  73. width: 100%;
  74. position: absolute;
  75. z-index: -1;
  76. justify-content: center;
  77. align-self: center;
  78. }
  79.  
  80. .alert_text-container {
  81. display: flex;
  82. align-items: center;
  83. justify-content: center;
  84. text-align: center;
  85. flex-direction: column;
  86. width: 100%;
  87. position: relative;
  88. z-index: 1;
  89. max-height: 100%;
  90. max-width: 100%;
  91. }
  92.  
  93. .alert_text {
  94. font-family: 'EB-Garamond';
  95. font-size: 48px;
  96. font-weight: normal;
  97. color: #FFFFFF;
  98. width: 100%;
  99. }
  100.  
  101. .alert_secondary-text {
  102. font-family: 'EB-Garamond';
  103. font-size: 110px;
  104. font-weight: normal;
  105. color: rgb(100,10,10);
  106. width: 100%;
  107. text-transform: uppercase;
  108. white-space: nowrap;
  109. transform: scaleY(1.2)
  110. }
  111.  
  112. .alert_text-accent {
  113. color: #9146FF;
  114. }
  115.  
  116. .alert_image {
  117. width: 100%;
  118. height: 100%;
  119. }
  120.  
  121. img {
  122. width: 0px;
  123. height: 0px;
  124. }
  125.  
  126. .cheer-1 {
  127. color: #979797;
  128. font-size: 0px;
  129. }
  130.  
  131. .cheer-100 {
  132. color: #9c3ee8;
  133. font-size: 0px;
  134. }
  135.  
  136. .cheer-1000 {
  137. color: #1db2a5;
  138. font-size: 0px;
  139. }
  140.  
  141. .cheer-5000 {
  142. color: #0099fe;
  143. font-size: 0px;
  144. }
  145.  
  146. .cheer-10000 {
  147. color: #f43021;
  148. font-size: 0px;
  149. }
  150.  
  151. .cheer-100000 {
  152. color: #f3a71a;
  153. font-size: 0px;
  154. }
  155.  
  156. @keyframes alert-animation {
  157. 0% {
  158. transform: scale(1);
  159. opacity: 0;
  160. }
  161. 50% {
  162. transform: scale(1.1);
  163. opacity: 1;
  164. }
  165. 50% {
  166. transform: scale(1.1);
  167. opacity: 1;
  168. }
  169. 100% {
  170. transform: scale(1.2);
  171. opacity: 0;
  172. }
  173. }
Advertisement
Add Comment
Please, Sign In to add comment