index.scss 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // 动画|渐显
  2. .vci-amt-fade-flow-ltr {
  3. mask-image: linear-gradient(-90deg, transparent, #fff 50%, #fff);
  4. mask-mode: alpha;
  5. mask-repeat: no-repeat;
  6. mask-size: 200% 100%;
  7. mask-position: 200% 0;
  8. animation: amtIsModuleLtr 1s 1 both ease-in-out;
  9. @keyframes amtIsModuleLtr {
  10. from {
  11. mask-position: 200% 0;
  12. }
  13. to {
  14. mask-position: 0 0;
  15. }
  16. }
  17. }
  18. .vci-amt-fade-flow-rtl {
  19. mask-image: linear-gradient(90deg, transparent, #fff 50%, #fff);
  20. mask-mode: alpha;
  21. mask-repeat: no-repeat;
  22. mask-size: 200% 100%;
  23. mask-position: -100% 0;
  24. animation: amtIsModuleRtl 1s 1 both ease-in-out;
  25. @keyframes amtIsModuleRtl {
  26. from {
  27. mask-position: -100% 0;
  28. }
  29. to {
  30. mask-position: 100% 0;
  31. }
  32. }
  33. }
  34. .vci-amt-fade-flow-btt {
  35. mask-image: linear-gradient(180deg, transparent, #fff 50%, #fff);
  36. mask-mode: alpha;
  37. mask-repeat: no-repeat;
  38. mask-size: 100% 200%;
  39. mask-position: 0 -100%;
  40. animation: amtIsModuleBtt 1s 1 both ease-in-out;
  41. @keyframes amtIsModuleBtt {
  42. from {
  43. mask-position: 0 -100%;
  44. }
  45. to {
  46. mask-position: 0 100%;
  47. }
  48. }
  49. }