1/5/1404
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
import { g 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 };
|
||||
Reference in New Issue
Block a user