123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- @keyframes rotateOpen{
- 0% {transform: rotate(-15deg);}
- 100% {transform: rotate(0deg);}
- }
- @keyframes rotateClose{
- 0% { transform: rotate(0deg);}
- 100% {transform: rotate(-15deg);}
- }
- @keyframes translateOpen{
- 0%{margin-top: 0px;}
- 100%{margin-top: -155px;}
- }
- @keyframes translateClose{
- 0%{margin-top: -155px;}
- 100%{margin-top: 0px;}
- }
- @keyframes translateOpensvg{
- 0%{margin-top: 50px;}
- 100%{margin-top: 180px;}
- }
- @keyframes translateClosesvg{
- 0%{margin-top: 180px;}
- 100%{margin-top: 50px;}
- }
- @keyframes visible{
- 0%{
- opacity: 0;
- transform: translateY(50px);
- }
- 100%{
- opacity: 1;
- transform: translateY(0px);
- }
- }
- @keyframes hidden{
- 0%{
- opacity: 1;
- transform: translateY(0px);
- }
- 100%{
- opacity: 0;
- transform: translateY(50px);
- }
- }
- .why_lsdo{
- &.open{
- h3{
- animation: rotateOpen 1s, translateOpen 1s;
- animation-fill-mode: forwards;
- }
- section{
- animation: visible 1s;
- animation-fill-mode: forwards;
- }
- svg{
- animation: rotateOpen 1s, translateOpensvg 1s;
- animation-fill-mode: forwards;
- }
- }
- &.close{
- h3{
- animation: rotateClose 1s, translateClose 1s;
- animation-fill-mode: forwards;
- }
- section{
- animation: hidden 1s;
- animation-fill-mode: forwards;
- }
- svg{
- animation: rotateClose 1s, translateClosesvg 1s;
- animation-fill-mode: forwards;
- }
- }
- }
|