effect-cube.css 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. .swiper.swiper-cube {
  2. overflow: visible;
  3. }
  4. .swiper-cube .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 .swiper-slide .swiper-slide {
  15. pointer-events: none;
  16. }
  17. .swiper-cube.swiper-rtl .swiper-slide {
  18. transform-origin: 100% 0;
  19. }
  20. .swiper-cube .swiper-slide-active,
  21. .swiper-cube .swiper-slide-active .swiper-slide-active {
  22. pointer-events: auto;
  23. }
  24. .swiper-cube .swiper-slide-active,
  25. .swiper-cube .swiper-slide-next,
  26. .swiper-cube .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 .swiper-slide-next + .swiper-slide {
  50. pointer-events: auto;
  51. visibility: visible;
  52. }
  53. /* Cube slide shadows start */
  54. .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-top,
  55. .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-bottom,
  56. .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-left,
  57. .swiper-cube .swiper-slide-shadow-cube.swiper-slide-shadow-right {
  58. z-index: 0;
  59. -webkit-backface-visibility: hidden;
  60. backface-visibility: hidden;
  61. }
  62. /* Cube slide shadows end */