ctrl-freaks/freezeframe.js

Problem with Freezeframe.js inside Bootstrap 5 Modal

Closed this issue · 1 comments

Hello,

I have a problem with getting a freezeframe.js GIF to play inside a Bootstrap 5 modal.

When the modal is opened, the GIF is stuck at a white frame and the animation won't start.

The issue is replicated in the JSFiddle below:
link

Thanks in advance for your help!

Looks like you might have a race condition where the modal doesn't exist yet when you set up the event bindings.