From b5bfda2c4201999ce225efdae5c25edf7e794d05 Mon Sep 17 00:00:00 2001 From: Ken Sodemann Date: Mon, 25 Sep 2017 21:27:09 -0500 Subject: [PATCH] docs(slides): clarify how zooming works (#12932) fixes #12861 --- src/components/slides/slides.ts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/components/slides/slides.ts b/src/components/slides/slides.ts index 172f2ea68e..c4e2c5f9b8 100644 --- a/src/components/slides/slides.ts +++ b/src/components/slides/slides.ts @@ -106,6 +106,34 @@ import { ViewController } from '../../navigation/view-controller'; * } * ``` * + * ### Zooming + * If your slides contain images, you can enable zooming on them by setting `zoom="true" and + * wrapping each image in a `div` with the class `swiper-zoom-container`. Zoom supports + * `img`, `svg`, `canvas`, and `ion-img`. + * + * ```html + * + * + *
+ * + *
+ * Woof + *
+ * + *
+ * + *
+ * Meow + *
+ * + *
+ * + *
+ * Just keep swimming + *
+ * + * ``` + * * @advanced * * There are several options available to create customized slides. Ionic exposes