Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.01 KB | None | 0 0
  1. /* Flip
  2. ------------------------------------
  3. */
  4. .pgn-wrapper[data-position^='bottom-'] .pgn-flip .alert {
  5.   -webkit-transform-origin: 50% 100%;
  6.   transform-origin: 50% 100%;
  7. }
  8. .pgn-flip .alert {
  9.   -webkit-transform-origin: 50% 0%;
  10.   transform-origin: 50% 0%;
  11.   box-shadow: 0 6px 4px -3px rgba(0, 0, 0, 0.2);
  12.   -webkit-animation-name: flipInX;
  13.   animation-name: flipInX;
  14.   -webkit-animation-duration: 0.8s;
  15.   animation-duration: 0.8s;
  16.   border-radius: 0;
  17.   padding: 25px 35px;
  18.   max-width: 500px;
  19.   max-height: 250px;
  20.   overflow: hidden;
  21. }
  22. @-webkit-keyframes flipInX {
  23.   0% {
  24.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -90deg);
  25.     -webkit-transition-timing-function: ease-in;
  26.   }
  27.   40% {
  28.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 20deg);
  29.     -webkit-transition-timing-function: ease-out;
  30.   }
  31.   60% {
  32.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -10deg);
  33.     -webkit-transition-timing-function: ease-in;
  34.     opacity: 1;
  35.   }
  36.   80% {
  37.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 5deg);
  38.     -webkit-transition-timing-function: ease-out;
  39.   }
  40.   100% {
  41.     -webkit-transform: perspective(400px);
  42.   }
  43. }
  44. @keyframes flipInX {
  45.   0% {
  46.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -90deg);
  47.     transform: perspective(400px) rotate3d(1, 0, 0, -90deg);
  48.     -webkit-transition-timing-function: ease-in;
  49.     transition-timing-function: ease-in;
  50.   }
  51.   40% {
  52.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 20deg);
  53.     transform: perspective(400px) rotate3d(1, 0, 0, 20deg);
  54.     -webkit-transition-timing-function: ease-out;
  55.     transition-timing-function: ease-out;
  56.   }
  57.   60% {
  58.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -10deg);
  59.     transform: perspective(400px) rotate3d(1, 0, 0, -10deg);
  60.     -webkit-transition-timing-function: ease-in;
  61.     transition-timing-function: ease-in;
  62.     opacity: 1;
  63.   }
  64.   80% {
  65.     -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 5deg);
  66.     transform: perspective(400px) rotate3d(1, 0, 0, 5deg);
  67.     -webkit-transition-timing-function: ease-out;
  68.     transition-timing-function: ease-out;
  69.   }
  70.   100% {
  71.     -webkit-transform: perspective(400px);
  72.     transform: perspective(400px);
  73.   }
  74. }
  75. @keyframes fadeIn {
  76.   0% {
  77.     opacity: 0;
  78.   }
  79.   100% {
  80.     opacity: 1;
  81.   }
  82. }
  83. @-webkit-keyframes fadeIn {
  84.   0% {
  85.     opacity: 0;
  86.   }
  87.   100% {
  88.     opacity: 1;
  89.   }
  90. }
  91. .pgn-circle .alert .close {
  92.   margin-top: -4px;
  93. }
  94. body > .pgn-wrapper {
  95.   z-index: 900;
  96. }
  97. @media (max-width: 979px) {
  98.   body .pgn-wrapper[data-position="top"] {
  99.     left: 0 !important;
  100.   }
  101.   body .pgn-wrapper[data-position="bottom"] {
  102.     left: 0 !important;
  103.   }
  104. }
  105. @media (max-width: 767px) {
  106.   body .pgn-wrapper[data-position$='-left'],
  107.   body .pgn-wrapper[data-position$='-right'] {
  108.     left: 10px !important;
  109.     right: 10px !important;
  110.   }
  111.   body .pgn-wrapper[data-position$='-right'] .alert,
  112.   body .pgn-wrapper[data-position$='-left'] .alert {
  113.     max-width: 100%;
  114.     width: 100%;
  115.   }
  116. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement