effect-cube-element.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. .swiper.swiper-cube {
  2. overflow: visible;
  3. }
  4. .swiper-cube ::slotted(swiper-slide) {
  5. pointer-events: none;
  6. -webkit-backface-visibility: hidden;
  7. backface-visibility: hidden;
  8. z-index: 1;
  9. visibility: hidden;
  10. transform-origin: 0 0;
  11. width: 100%;
  12. height: 100%;
  13. }
  14. .swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide) {
  15. pointer-events: none;
  16. }
  17. .swiper-cube.swiper-rtl ::slotted(swiper-slide) {
  18. transform-origin: 100% 0;
  19. }
  20. .swiper-cube ::slotted(.swiper-slide-active),
  21. .swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active) {
  22. pointer-events: auto;
  23. }
  24. .swiper-cube ::slotted(.swiper-slide-active),
  25. .swiper-cube ::slotted(.swiper-slide-next),
  26. .swiper-cube ::slotted(.swiper-slide-prev) {
  27. pointer-events: auto;
  28. visibility: visible;
  29. }
  30. .swiper-cube .swiper-cube-shadow {
  31. position: absolute;
  32. left: 0;
  33. bottom: 0px;
  34. width: 100%;
  35. height: 100%;
  36. opacity: 0.6;
  37. z-index: 0;
  38. }
  39. .swiper-cube .swiper-cube-shadow:before {
  40. content: '';
  41. background: #000;
  42. position: absolute;
  43. left: 0;
  44. top: 0;
  45. bottom: 0;
  46. right: 0;
  47. filter: blur(50px);
  48. }
  49. .swiper-cube ::slotted(.swiper-slide-next) + ::slotted(swiper-slide) {
  50. pointer-events: auto;
  51. visibility: visible;
  52. }
  53. /* Cube slide shadows start *//* Cube slide shadows end */