index.wxss 830 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .orderNotify {
  2. background-color: rgba(0,0,0,.6);
  3. color: #fff;
  4. border-radius: 30rpx;
  5. line-height: 60rpx;
  6. padding: 0 20rpx;
  7. display: flex;
  8. align-content: center;
  9. align-items: center;
  10. transform: translateX(-100%);
  11. }
  12. .orderNotify.ani-in {
  13. animation: aniIn 400ms ease-in forwards;
  14. }
  15. .orderNotify.ani-out {
  16. animation: aniOut 400ms ease-out forwards;
  17. }
  18. .orderNotifyAvatar {
  19. width: 40rpx;
  20. height: 40rpx;
  21. border-radius: 50%;
  22. margin-right: 8rpx;
  23. }
  24. .orderNotifyName {
  25. display: inline-block;
  26. max-width: 200rpx;
  27. overflow: hidden;
  28. text-overflow:ellipsis;
  29. white-space: nowrap;
  30. }
  31. @keyframes aniIn {
  32. from {
  33. transform: translateX(-100%);
  34. }
  35. to {
  36. transform: translateX(0%);
  37. }
  38. }
  39. @keyframes aniOut {
  40. from {
  41. transform: translateX(0%);
  42. }
  43. to {
  44. transform: translateX(-100%);
  45. }
  46. }