From c178236e32f914cc2d08b5a0bd0d7a9573d97448 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 18 Apr 2019 09:51:09 -0400 Subject: [PATCH] docs(slides): add swiper prefix in animation usage (#18073) --- core/src/components/slides/readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/components/slides/readme.md b/core/src/components/slides/readme.md index c30d4d9129..5eeb05e67d 100644 --- a/core/src/components/slides/readme.md +++ b/core/src/components/slides/readme.md @@ -84,11 +84,11 @@ const slidesOpts = { let $shadowBeforeEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top'); let $shadowAfterEl = isHorizontal ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom'); if ($shadowBeforeEl.length === 0) { - $shadowBeforeEl = $(`
`); + $shadowBeforeEl = swiper.$(`
`); $slideEl.append($shadowBeforeEl); } if ($shadowAfterEl.length === 0) { - $shadowAfterEl = $(`
`); + $shadowAfterEl = swiper.$(`
`); $slideEl.append($shadowAfterEl); } if ($shadowBeforeEl.length) $shadowBeforeEl[0].style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0; @@ -165,7 +165,7 @@ const slidesOpts = { } else { $cubeShadowEl = $el.find('.swiper-cube-shadow'); if ($cubeShadowEl.length === 0) { - $cubeShadowEl = $('
'); + $cubeShadowEl = swiper.$('
'); $el.append($cubeShadowEl); } } @@ -388,11 +388,11 @@ const slideOpts = { let shadowBefore = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-left') : $slideEl.find('.swiper-slide-shadow-top'); let shadowAfter = swiper.isHorizontal() ? $slideEl.find('.swiper-slide-shadow-right') : $slideEl.find('.swiper-slide-shadow-bottom'); if (shadowBefore.length === 0) { - shadowBefore = $(`
`); + shadowBefore = swiper.$(`
`); $slideEl.append(shadowBefore); } if (shadowAfter.length === 0) { - shadowAfter = $(`
`); + shadowAfter = swiper.$(`
`); $slideEl.append(shadowAfter); } if (shadowBefore.length) shadowBefore[0].style.opacity = Math.max(-progress, 0);