I'm trying to navigate to the same slide multiple times using impress.js.
Imagine the following slides:
<div id="impress">
<div id="map" class="step" data-scale="70">
<img src="img/foo.jpg" class="map" />
</div>
<div id="cityX" class="step" data-x="11000" data-y="12000">
<img src="img/cityX.jpg" class="pic" />
</div>
<!-- XXXXXXX TODO show map again-->
<div id="cityY" class="step" data-x="12000" data-y="12000">
<img src="img/cityY.jpg" class="pic" />
</div>
My goal is to navigate to map slide in the beginning as well as between slides cityX and cityY. (In fact the map is outline view of the presentation and I want to zoom in to particular city, zoom out to map and zoom in to another city afterwards.)
Any ideas?
According to the documentation, you can programmatically navigate to target slide in Javascript.
In this case, you listened event when the slide moved to next slide. If current slide is
cityX, move back to slidemapHowever, to avoid moving slide between
mapandcityXeternity, you must define a queue of slide IDs thatmapwill move to next