index.css 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. @import '../common/index.css';
  2. .van-transition {
  3. transition-timing-function: ease;
  4. }
  5. .van-fade-enter-active,
  6. .van-fade-leave-active {
  7. transition-property: opacity;
  8. }
  9. .van-fade-enter,
  10. .van-fade-leave-to {
  11. opacity: 0;
  12. }
  13. .van-fade-down-enter-active,
  14. .van-fade-down-leave-active,
  15. .van-fade-left-enter-active,
  16. .van-fade-left-leave-active,
  17. .van-fade-right-enter-active,
  18. .van-fade-right-leave-active,
  19. .van-fade-up-enter-active,
  20. .van-fade-up-leave-active {
  21. transition-property: opacity, -webkit-transform;
  22. transition-property: opacity, transform;
  23. transition-property: opacity, transform, -webkit-transform;
  24. }
  25. .van-fade-up-enter,
  26. .van-fade-up-leave-to {
  27. -webkit-transform: translate3d(0, 100%, 0);
  28. transform: translate3d(0, 100%, 0);
  29. opacity: 0;
  30. }
  31. .van-fade-down-enter,
  32. .van-fade-down-leave-to {
  33. -webkit-transform: translate3d(0, -100%, 0);
  34. transform: translate3d(0, -100%, 0);
  35. opacity: 0;
  36. }
  37. .van-fade-left-enter,
  38. .van-fade-left-leave-to {
  39. -webkit-transform: translate3d(-100%, 0, 0);
  40. transform: translate3d(-100%, 0, 0);
  41. opacity: 0;
  42. }
  43. .van-fade-right-enter,
  44. .van-fade-right-leave-to {
  45. -webkit-transform: translate3d(100%, 0, 0);
  46. transform: translate3d(100%, 0, 0);
  47. opacity: 0;
  48. }
  49. .van-slide-down-enter-active,
  50. .van-slide-down-leave-active,
  51. .van-slide-left-enter-active,
  52. .van-slide-left-leave-active,
  53. .van-slide-right-enter-active,
  54. .van-slide-right-leave-active,
  55. .van-slide-up-enter-active,
  56. .van-slide-up-leave-active {
  57. transition-property: -webkit-transform;
  58. transition-property: transform;
  59. transition-property: transform, -webkit-transform;
  60. }
  61. .van-slide-up-enter,
  62. .van-slide-up-leave-to {
  63. -webkit-transform: translate3d(0, 100%, 0);
  64. transform: translate3d(0, 100%, 0);
  65. }
  66. .van-slide-down-enter,
  67. .van-slide-down-leave-to {
  68. -webkit-transform: translate3d(0, -100%, 0);
  69. transform: translate3d(0, -100%, 0);
  70. }
  71. .van-slide-left-enter,
  72. .van-slide-left-leave-to {
  73. -webkit-transform: translate3d(-100%, 0, 0);
  74. transform: translate3d(-100%, 0, 0);
  75. }
  76. .van-slide-right-enter,
  77. .van-slide-right-leave-to {
  78. -webkit-transform: translate3d(100%, 0, 0);
  79. transform: translate3d(100%, 0, 0);
  80. }