@jebbdomingo you may adjust the datasource array and then goTo(index) to the new index. Here's some info https://t.co/tIOAsg1QZs
If you change the current, previous, or next slide - also call refreshSlideContent(index). But ideally, you want to avoid modifying active slides.
PhotoSwipe v5 is out of beta 🎉
https://t.co/rJ7A9okSm7
- Rewrite in ES modules
- Much simpler initialization
- Animation and gesture engine update
- Single CSS, no external assets
- Responsive images support
- Dynamic import
- Improved documentation
PhotoSwipe v5 is out of beta 🎉
https://t.co/rJ7A9okSm7
- Rewrite in ES modules
- Much simpler initialization
- Animation and gesture engine update
- Single CSS, no external assets
- Responsive images support
- Dynamic import
- Improved documentation
@JackyHallyday it's not recommended to use v5 if you need to support IE11.
But it'll automatically disable itself if the browser doesn't support it, and the image link will just work.
Alternatively, you may provide your own fallback via script type nomodule.