Nktfh100

css animations unminified

Jul 24th, 2019
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.16 KB | None | 0 0
  1. .zoomInImage {
  2.   animation: zoomInImageA 1s ease-in-out forwards;
  3. }
  4. @keyframes zoomInImageA {
  5.   0% {
  6.     height: BASEIMGHEIGHT;
  7.     width: BASEIMGWIDTH;
  8.     margin-top: 0px;
  9.     margin-left: 0px;
  10.   }
  11.   100% {
  12.     width: WIDTH;
  13.     height: HEIGHT;
  14.     margin-top: TOP;
  15.     margin-left: LEFT;
  16.     }
  17. }
  18. .zoomInContainer {
  19.   animation: zoomInContainerA 1s ease-in-out forwards;
  20. }
  21. @keyframes zoomInContainerA {
  22.   0% {
  23.     width: BASEIMGWIDTH;
  24.     height: BASEIMGHEIGHT;
  25.   }
  26.   100% {
  27.     width: STARTWIDTH;
  28.     height: STARTHEIGHT;
  29.   }
  30. }
  31. .zoomOutImage {
  32.   animation: zoomOutImageA 1s ease-in-out forwards;
  33.   -webkit-animation: zoomOutImageA 1s ease-in-out forwards;
  34. }
  35. @keyframes zoomOutImageA {
  36.   0% {
  37.     height: HEIGHT;
  38.     width: WIDTH;
  39.     margin-top: TOP;
  40.     margin-left: LEFT;
  41.   }
  42.   100% {
  43.     width: BASEIMGWIDTH;
  44.     height: BASEIMGHEIGHT;
  45.     margin-top: 0px;
  46.     margin-left: 0px;
  47.   }
  48. }
  49. .zoomOutContainer {
  50.   animation: zoomOutContainerA 1s ease-in-out forwards;
  51.   -webkit-animation: zoomOutContainerA 1s ease-in-out forwards;
  52. }
  53. @keyframes zoomOutContainerA {
  54.   100% {
  55.     width: BASEIMGWIDTH;
  56.     height: BASEIMGHEIGHT;
  57.   }
  58. }
Advertisement
Add Comment
Please, Sign In to add comment