Advertisement
Guest User

sub

a guest
Dec 15th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.95 KB | None | 0 0
  1. @import url('https://fonts.googleapis.com/css?family=Almendra|Almendra+SC');
  2.  
  3. .widget-AlertBox {
  4.     position: relative;
  5. }
  6. body,
  7. html {
  8.     height: 100%;
  9.     width: 100%;
  10.     overflow: hidden;
  11. }
  12. #wrap {
  13.     position: relative;
  14.     height: 100%;
  15.     width: 100%;
  16. }
  17. #alert-box {
  18.     height: 100%;
  19.     width: 100%;
  20.     position: absolute;
  21. }
  22. #alert-box.hidden,
  23. .hidden {
  24.     opacity: 0;
  25. }
  26. #alert-text {
  27.     text-align: center;
  28.     font-family: 'Almendra SC', serif;
  29.     color: #e3e6e8;
  30.     text-shadow: 2px 0px #676d6e;
  31. }
  32.  
  33. #alert-message-box {
  34.   position: absolute;
  35.   width: 470px; height: 54px;
  36.   line-height: 54px;
  37.   left: 50.2%; top: 141px;
  38.   transform: translate(-50%, -50%);
  39.   overflow: hidden;
  40.   text-transform: uppercase;
  41.   letter-spacing: 0.3em;
  42.   /*
  43.     Container animation goes here
  44.   */
  45. }
  46.  
  47. #alert-user-message-box {
  48.   position: absolute;
  49.   width: 500px; height: 125px;
  50.   left: 50%; top: 246px;
  51.   transform: translate(-50%, -50%);
  52.   overflow: hidden;
  53.  
  54.   /*
  55.     Container animation goes here, fade?
  56.   */
  57. }
  58.  
  59. .alert-message-anim {
  60.   /*Message text animation goes here*/
  61.     opacity: 0;
  62.     animation: fadeIn 7s linear;
  63. }
  64.  
  65. .alert-user-message-anim {
  66.   /*User Message text animation goes here*/
  67.   opacity: 0;
  68.   animation: fadeIn 7s linear;
  69. }
  70.  
  71. #alert-message {
  72. }
  73.  
  74. #alert-user-message {
  75.     font-family: 'Almendra', serif;
  76. }
  77.  
  78. #alert-user-message img {
  79.     vertical-align: middle;
  80.     height: 1em;
  81. }
  82. #alert-image {
  83.     position: relative;
  84. }
  85. #alert-image video {
  86.     position: absolute;
  87.     width: 100%; height: 100%;
  88.     top: 0; left: 0;
  89.     opacity: 0;
  90.     animation: fadeOut 7s linear 0s 1; -webkit-animation: fadeOut 7s linear 0s 1;
  91. }
  92. #alert-message > span > span {
  93.     display: inline-block;
  94. }
  95. #alert-image {
  96.     z-index: 6;
  97.     position: relative;
  98. }
  99. #alert-text {
  100.     z-index: 6;
  101.     position: relative;
  102. }
  103. #alert-text-wrap {
  104.     z-index: 6;
  105.     position: relative;
  106. }
  107.  
  108. @-webkit-keyframes fadeIn {
  109.     17% {opacity: 0; animation-timing-function: cubic-bezier(0.56, 0.00, 0.19, 1.00);}
  110.     24% {opacity: 1; animation-timing-function: linear;}
  111.     72% {opacity: 1; animation-timing-function: cubic-bezier(0.94, 0.00, 0.43, 1.00);}
  112.     77% {opacity: 0; animation-timing-function: linear;}
  113. }
  114.  
  115. @keyframes fadeIn {
  116.     17% {opacity: 0; animation-timing-function: cubic-bezier(0.56, 0.00, 0.19, 1.00);}
  117.     24% {opacity: 1; animation-timing-function: linear;}
  118.     72% {opacity: 1; animation-timing-function: cubic-bezier(0.94, 0.00, 0.43, 1.00);}
  119.     77% {opacity: 0; animation-timing-function: linear;}
  120. }
  121.  
  122. @-webkit-keyframes fadeOut {
  123.     0% {opacity: 1; animation-timing-function: linear;}
  124.     90% {opacity: 1; animation-timing-function: linear;}
  125.     95% {opacity: 0; animation-timing-function: linear;}
  126. }
  127.  
  128. @keyframes fadeOut {
  129.     0% {opacity: 1; animation-timing-function: linear;}
  130.     90% {opacity: 1; animation-timing-function: linear;}
  131.     95% {opacity: 0; animation-timing-function: linear;}
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement