Skip to content

Commit

Permalink
feat(cube-effect): set --swiper-cube-translate-z CSS property on sw…
Browse files Browse the repository at this point in the history
…iper-wrapper
  • Loading branch information
nolimits4web committed Apr 20, 2022
1 parent 6ec847c commit 758ad28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/effect-cube/effect-cube.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ export default function EffectCube({ swiper, extendParams, on }) {
swiper.isHorizontal() ? 0 : wrapperRotate
}deg) rotateY(${swiper.isHorizontal() ? -wrapperRotate : 0}deg)`,
);
$wrapperEl[0].style.setProperty('--swiper-cube-translate-z', `${zFactor}px`);
};
const setTransition = (duration) => {
const { $el, slides } = swiper;
Expand Down

0 comments on commit 758ad28

Please sign in to comment.