I have just updated to the latest version of Captivate and I'm eager to be able to use svg's as buttons now. I've loaded my svg onto my slide and set it to 'use as button' and gave it the action of 'go to previous slide' (it is my "back" button). However, when going from slide to slide, I notice the svg button disappears and reappears very quickly, making it look like the button does a quick flash on the load of each new slide.
My button is on my first slide and I have the timing set to "display for rest of project" and the "appear after" time is set to zero. Here's a picture of my timeline -
Has anyone run into this issue?
However, when going from slide to slide, I notice the svg button disappears and reappears very quickly...
Yes I ran into the same issue. And even more:
About the flashes in particular: i noticed in my browser's dev toools/JS Console, that everytime a slide enters or you roll the mouse over an interactive SVG-button, the console indicates a Custom CSS Injection on customcss.js. I'd have to look deeper into some manuals, to know what exactly that means. But I have a general idea. Custom CSS can be injected into the CSS setup at runtime and the web display changes accordingly. So for example you could force a certain font size on a page.
Seemingly the HTML5 output of Captivate uses this approach to manage the dynamic display of SVGs on load, rollover and down events. I guess this makes it flash each time such an injection happens.
My advice: Avoid SVGs in Captivate, especially avoid them as interactive objects.
Thanks, kdmemory. I believe I will have to go back to PNG image fillings for my buttons then as well. If I find out anything further on this issue, I'll try to share it here.
Although I agree (see my previous answer about timing rest of project) for some of your comments, I love to use SVGs as interactive objects in other circumstances, where the 'loading' is not so important. I have published several use cases on my blog, didn't have the problems about displaying in black, not displaying or having states messed up. Have a look at:
Both are published and rescalable. All SVGs are buttons and have several states. Something which is not possible with shape buttons (which can also have the flash problem) is to limit the clickable area to the image itself, not to the bounding box is very important to me.
in that case, limiting the clickable area to the visual image content, I agree, I would use an SVG. No other way. But beyond that, when this criteria doesn't matter, and within a backBtn/nextBtn scenario this is almost always the case, I advice not to use SVGs.
You forget the advantage of crispness especially for responsive projects. I accept the flashing in that case.
Yes, that is indeed the case, even when you have them on the master slide instead of timed for the rest of the project. How annoying it is depends on the complexity of the paths structure of the SVGs. I have no workaround.
It's not even just when SVGs are in buttons. Even SVGs onscreen which are set to "Rest of Project" flicker each time you click to go to the next slide (or previous slide). This has been an on going bug since 2019 update 2 or 3.
As the company I work for require SVGS onscreen for the whole project, we are stuck using 2019 update 1 (22.214.171.1246) which works with any SVGS set to "Rest of Project" and we have NO flicker problem.
We just hope the next proper update (hopefully 2020) will fix this problem.
Please update to 126.96.36.1999, you are still on the first release of 11.5. There was a bug patch very quickly after that first release which you didn't install.
Not only SVGs but also Shapes can flicker. For shapes that is the case since they appeared with Captivate version 6, which is over 7 years ago. I have some workarounds for the flickering but agree that it should be solved. Have given up to launch bug reports for this bug.
There are more issues with SVGs, especially when using as drag sources. I know it is simply code which needs to be evaluated eveery time, but location and size should be kept. Not the case as you can see in this game:
I know lot of expert developers replace SVGs for those reasons by PNGs, but that means losing the crispness (and small file size) which makes SVGs so attractive especially if your course will be viewed on a multitude of devices and screens.
Please log a bug report... Do not expect this to be fixed if only few people log reports.
PS: SVGs cannot be IN buttons, they can be converted TO buttons.
I am also having this problem; where do I log a bug report? Thanks!
Thank you! I've reported it.