_transitions.scss 986 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // _ _ _ _
  2. // | |_ _ _ __ _ _ _ __(_) |_(_)___ _ _ ___
  3. // | _| '_/ _` | ' \(_-< | _| / _ \ ' \(_-<
  4. // \__|_| \__,_|_||_/__/_|\__|_\___/_||_/__/
  5. @mixin accordeon-transition($h){
  6. &.accordeon-enter,
  7. &.accordeon-leave-to{
  8. // opacity: 0;
  9. height:0.01vh;
  10. padding-top: 0;
  11. padding-bottom: 0;
  12. // transform: translateY(100%);
  13. // transform: translate3d(0, 100%, 0);
  14. }
  15. &.accordeon-enter-to,
  16. &.accordeon-leave{
  17. // opacity:1;
  18. height:$h;
  19. // transform: translateY(0%);
  20. // transform: translate3d(0, 0, 0);
  21. }
  22. &.accordeon-enter-active{
  23. transition: all 300ms ease-in-out;
  24. }
  25. &.accordeon-leave-active{
  26. transition: all 200ms ease-in-out;
  27. }
  28. }
  29. @mixin fade-transition() {
  30. &.fade-enter,
  31. &.fade-leave-to{
  32. opacity: 0;
  33. }
  34. &.fade-enter-to,
  35. &.fade-leave{
  36. opacity:1;
  37. }
  38. &.fade-enter-active{
  39. transition: all 300ms ease-in-out;
  40. }
  41. &.fade-leave-active{
  42. transition: all 200ms ease-in-out;
  43. }
  44. }