You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
561 B
15 lines
561 B
import { k as getSlideTransformEl, c as createElement } from './utils.mjs';
|
|
|
|
function createShadow(suffix, slideEl, side) {
|
|
const shadowClass = `swiper-slide-shadow${side ? `-${side}` : ''}${suffix ? ` swiper-slide-shadow-${suffix}` : ''}`;
|
|
const shadowContainer = getSlideTransformEl(slideEl);
|
|
let shadowEl = shadowContainer.querySelector(`.${shadowClass.split(' ').join('.')}`);
|
|
if (!shadowEl) {
|
|
shadowEl = createElement('div', shadowClass.split(' '));
|
|
shadowContainer.append(shadowEl);
|
|
}
|
|
return shadowEl;
|
|
}
|
|
|
|
export { createShadow as c };
|