Newer
Older
pre-www / build / assets / js / vendor / swiper / shared / effect-target.mjs
import { l as getSlideTransformEl } from './utils.mjs';

function effectTarget(effectParams, slideEl) {
  const transformEl = getSlideTransformEl(slideEl);
  if (transformEl !== slideEl) {
    transformEl.style.backfaceVisibility = 'hidden';
    transformEl.style['-webkit-backface-visibility'] = 'hidden';
  }
  return transformEl;
}

export { effectTarget as e };