Colorbox: Show/simulate 'loading' animatio

2019-08-27 10:38发布

问题:

How can I show or simulate (using a fixed timespan) a loading animation for iframe content which is displayed using Colorbox?

What I'd like to achieve is actually a temporary overlay over the iframe content, which disappears when the iframe-content is loaded. Is this somewhat possible?

回答1:

There is LoadMask plugin that can display an overlay. You will need to control when to show it and when to hide it manually though.