Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Mar 4, 2022
1 parent 3527355 commit 56a7af7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/effect-coverflow/effect-coverflow.js
Expand Up @@ -28,11 +28,11 @@ export default function EffectCoverflow({ swiper, extendParams, on }) {
const $slideEl = slides.eq(i);
const slideSize = slidesSizesGrid[i];
const slideOffset = $slideEl[0].swiperSlideOffset;
const centerOffset = (center - slideOffset - slideSize / 2) / slideSize
const offsetMultiplier =
typeof params.modifier === 'function' ?
params.modifier(centerOffset) :
centerOffset * params.modifier;
const centerOffset = (center - slideOffset - slideSize / 2) / slideSize;
const offsetMultiplier =
typeof params.modifier === 'function'
? params.modifier(centerOffset)
: centerOffset * params.modifier;

let rotateY = isHorizontal ? rotate * offsetMultiplier : 0;
let rotateX = isHorizontal ? 0 : rotate * offsetMultiplier;
Expand Down

0 comments on commit 56a7af7

Please sign in to comment.