You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_animations.scss 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**
  2. * Project animations
  3. **/
  4. /**
  5. * START of slide in animation for extended toolbar.
  6. */
  7. @include keyframes(slideInX) {
  8. 0% { transform: translateX(-100%); }
  9. 100% { transform: translateX(0%); }
  10. }
  11. @include keyframes(slideOutX) {
  12. 0% { transform: translateX(0%); }
  13. 100% { transform: translateX(-100%); }
  14. }
  15. @include keyframes(slideInExtX) {
  16. 0% { transform: translateX(-500%); }
  17. 100% { transform: translateX(0%); }
  18. }
  19. @include keyframes(slideOutExtX) {
  20. 0% { transform: translateX(0%); }
  21. 100% { transform: translateX(-500%); }
  22. }
  23. /**
  24. * END of slide out animation for extended toolbar.
  25. */
  26. /**
  27. * START of slide in / out animation for main toolbar.
  28. */
  29. @include keyframes(slideInY) {
  30. 100% { transform: translateY(0%); }
  31. }
  32. @include keyframes(slideOutY) {
  33. 0% { transform: translateY(0%); }
  34. 100% { transform: translateY(-100%); }
  35. }
  36. /**
  37. * END of slide in / out animation for main toolbar.
  38. */
  39. /**
  40. * START of slide in animation for extended toolbar (inner) panel.
  41. */
  42. // FIX: Can't use percentage because of breaking animation when width is changed
  43. // (100% of 0 is also zero) Extracted this to config variable.
  44. @include keyframes(slideInExt) {
  45. from { left: -$sidebarWidth; }
  46. to { left: 0; }
  47. }
  48. @include keyframes(slideOutExt) {
  49. from { left: 0; }
  50. to { left: -$sidebarWidth; }
  51. }
  52. /**
  53. * END of slide in animation for extended toolbar (inner) panel.
  54. */
  55. /**
  56. * START of slide in animation for extended toolbar container
  57. **/
  58. @include keyframes(slideOutExtContainer) {
  59. from { width: $sidebarWidth; }
  60. to { width: 0; }
  61. }
  62. @include keyframes(slideInExtContainer) {
  63. from { width: 0; }
  64. to { width: $sidebarWidth; }
  65. }
  66. /**
  67. * END of slide in animation for extended toolbar container
  68. **/