123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- //
- // Mixins: Animation
- //
- @keyframes flip-in-x {
- 0% {
- transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
- transition-timing-function: ease-in;
- opacity: 0;
- }
- 40% {
- transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
- transition-timing-function: ease-in;
- }
- 60% {
- transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
- opacity: 1;
- }
- 80% {
- transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
- }
- 100% {
- transform: perspective(400px);
- }
- }
- @keyframes fade-in {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- @keyframes fade-out {
- from {
- opacity: 1;
- }
- to {
- opacity: 0;
- }
- }
- @keyframes shake {
- 0% {
- transform: translate(2px, 1px) rotate(0deg);
- }
- 10% {
- transform: translate(-1px, -2px) rotate(-2deg);
- }
- 20% {
- transform: translate(-3px, 0) rotate(3deg);
- }
- 30% {
- transform: translate(0, 2px) rotate(0deg);
- }
- 40% {
- transform: translate(1px, -1px) rotate(1deg);
- }
- 50% {
- transform: translate(-1px, 2px) rotate(-1deg);
- }
- 60% {
- transform: translate(-3px, 1px) rotate(0deg);
- }
- 70% {
- transform: translate(2px, 1px) rotate(-2deg);
- }
- 80% {
- transform: translate(-1px, -1px) rotate(4deg);
- }
- 90% {
- transform: translate(2px, 2px) rotate(0deg);
- }
- 100% {
- transform: translate(1px, -2px) rotate(-1deg);
- }
- }
- @keyframes wobble {
- 0% {
- transform: none;
- }
- 15% {
- transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
- }
- 30% {
- transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
- }
- 45% {
- transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
- }
- 60% {
- transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
- }
- 75% {
- transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
- }
- 100% {
- transform: none;
- }
- }
|