A problem with gif animation on Firefox

7 views
Skip to first unread message

tal moran

unread,
Mar 8, 2021, 3:43:36 AM3/8/21
to Minno.js
Hi, 

I have a study in which one of the tasks uses gif animation. The animations work fine in Chrome, but on Firefox the animation appears twice (an animation that should go down in going down, and then down again). 

Does anyone have an easy fix for this problem? 

Thanks,
Tal

Elad Zlotnick

unread,
Mar 10, 2021, 6:45:26 AM3/10/21
to Minno.js
Hi Tal,

What I believe is happening is that the gif is starting from the middle, so that it seems like it walks twice.
I'd try to add the following action just before showing the gif stimulus:
function reset(){ var el = document.querySelector('.minno-stimulus[data-handle="stim-handle"] img'); el.src = el.src; }
What this does is reset the gif just before it displays - it should be reloading from cache so you don't lose much in terms of timing.
Note that you should replace "stim-handle" with the handle of the stimulus you're trying to replace.

best,
Elad
Reply all
Reply to author
Forward
0 new messages