_animation.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. @-webkit-keyframes rotateOpen{
  2. 0% {-webkit-transform: rotate(-15deg);transform: rotate(-15deg);}
  3. 100% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
  4. }
  5. @keyframes rotateOpen{
  6. 0% {-webkit-transform: rotate(-15deg);transform: rotate(-15deg);}
  7. 100% {-webkit-transform: rotate(0deg);transform: rotate(0deg);}
  8. }
  9. @-webkit-keyframes rotateClose{
  10. 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg);}
  11. 100% {-webkit-transform: rotate(-15deg);transform: rotate(-15deg);}
  12. }
  13. @keyframes rotateClose{
  14. 0% { -webkit-transform: rotate(0deg); transform: rotate(0deg);}
  15. 100% {-webkit-transform: rotate(-15deg);transform: rotate(-15deg);}
  16. }
  17. @-webkit-keyframes translateOpen{
  18. 0%{margin-top: 0px;}
  19. 100%{margin-top: -155px;}
  20. }
  21. @keyframes translateOpen{
  22. 0%{margin-top: 0px;}
  23. 100%{margin-top: -155px;}
  24. }
  25. @-webkit-keyframes translateClose{
  26. 0%{margin-top: -155px;}
  27. 100%{margin-top: 0px;}
  28. }
  29. @keyframes translateClose{
  30. 0%{margin-top: -155px;}
  31. 100%{margin-top: 0px;}
  32. }
  33. @-webkit-keyframes translateOpensvg{
  34. 0%{margin-top: 50px;}
  35. 100%{margin-top: 180px;}
  36. }
  37. @keyframes translateOpensvg{
  38. 0%{margin-top: 50px;}
  39. 100%{margin-top: 180px;}
  40. }
  41. @-webkit-keyframes translateClosesvg{
  42. 0%{margin-top: 180px;}
  43. 100%{margin-top: 50px;}
  44. }
  45. @keyframes translateClosesvg{
  46. 0%{margin-top: 180px;}
  47. 100%{margin-top: 50px;}
  48. }
  49. @-webkit-keyframes visible{
  50. 0%{
  51. opacity: 0;
  52. -webkit-transform: translateY(50px);
  53. transform: translateY(50px);
  54. }
  55. 100%{
  56. opacity: 1;
  57. -webkit-transform: translateY(0px);
  58. transform: translateY(0px);
  59. }
  60. }
  61. @keyframes visible{
  62. 0%{
  63. opacity: 0;
  64. -webkit-transform: translateY(50px);
  65. transform: translateY(50px);
  66. }
  67. 100%{
  68. opacity: 1;
  69. -webkit-transform: translateY(0px);
  70. transform: translateY(0px);
  71. }
  72. }
  73. @-webkit-keyframes hidden{
  74. 0%{
  75. opacity: 1;
  76. -webkit-transform: translateY(0px);
  77. transform: translateY(0px);
  78. }
  79. 100%{
  80. opacity: 0;
  81. -webkit-transform: translateY(50px);
  82. transform: translateY(50px);
  83. }
  84. }
  85. @keyframes hidden{
  86. 0%{
  87. opacity: 1;
  88. -webkit-transform: translateY(0px);
  89. transform: translateY(0px);
  90. }
  91. 100%{
  92. opacity: 0;
  93. -webkit-transform: translateY(50px);
  94. transform: translateY(50px);
  95. }
  96. }
  97. .why_lsdo{
  98. &.open{
  99. h3{
  100. -webkit-animation: rotateOpen 1s, translateOpen 1s;
  101. animation: rotateOpen 1s, translateOpen 1s;
  102. -webkit-animation-fill-mode: forwards;
  103. animation-fill-mode: forwards;
  104. }
  105. section{
  106. -webkit-animation: visible 1s;
  107. animation: visible 1s;
  108. -webkit-animation-fill-mode: forwards;
  109. animation-fill-mode: forwards;
  110. }
  111. svg{
  112. -webkit-animation: rotateOpen 1s, translateOpensvg 1s;
  113. animation: rotateOpen 1s, translateOpensvg 1s;
  114. -webkit-animation-fill-mode: forwards;
  115. animation-fill-mode: forwards;
  116. }
  117. }
  118. &.close{
  119. h3{
  120. -webkit-animation: rotateClose 1s, translateClose 1s;
  121. animation: rotateClose 1s, translateClose 1s;
  122. -webkit-animation-fill-mode: forwards;
  123. animation-fill-mode: forwards;
  124. }
  125. section{
  126. -webkit-animation: hidden 1s;
  127. animation: hidden 1s;
  128. -webkit-animation-fill-mode: forwards;
  129. animation-fill-mode: forwards;
  130. }
  131. svg{
  132. -webkit-animation: rotateClose 1s, translateClosesvg 1s;
  133. animation: rotateClose 1s, translateClosesvg 1s;
  134. -webkit-animation-fill-mode: forwards;
  135. animation-fill-mode: forwards;
  136. }
  137. }
  138. }