dimsemenov / photoswipe-dynamic-caption-plugin

A dynamic caption plugin for PhotoSwipe v5. Automatically positions the caption aside or below the image.
MIT License
70 stars 12 forks source link

Bug: zoom animation applied to captions when data-cropped=true #16

Open tombennet opened 2 years ago

tombennet commented 2 years ago

Thanks for working on this library again - it's an awesome project.

When animating from a cropped thumbnail (as per docs), the 'zoom' animation is applied to captions as well as the actual image. The desired behaviour is for captions to fade in, as per the demos.

This can easily be reproduced by adding data-cropped="true" to a photoswipe item in a gallery that uses the zoom animation. Demo here: https://codepen.io/tombennet/pen/wvmLxaO

Thanks!

tobimori commented 11 months ago

Have you found a workaround?

tombennet commented 11 months ago

Nope!