index.acss 397 B

1234567891011121314151617181920
  1. .block {
  2. position: fixed;
  3. top: 50%;
  4. left: 50%;
  5. width: 100px;
  6. height: 100px;
  7. margin: -50px 0 0 -50px;
  8. background-color: #1989fa;
  9. }
  10. .van-enter-active-class,
  11. .van-leave-active-class {
  12. transition-property: background-color, transform;
  13. }
  14. .van-enter-class,
  15. .van-leave-to-class {
  16. background-color: red;
  17. transform: rotate(-360deg) translate3d(-100%, -100%, 0);
  18. }