Dann müssen wir bei den Eventhandlern ansetzen, von denen oben die Rede war. Du hast ja in #2 das Wesentliche gepostet. Der Code ist gut kommentiert, so dass man nicht Zeile für Zeile analysieren muss.
- // ### `preloaded` Event ######
-
// `Event`, since 1.1
-
//
-
// This event is fired by every preloaded image and adjusts the preloader indicator's
-
// target position. Once all images are preloaded, `"loaded"` Event is triggered.
-
//
-
preloaded: function(e){
D. h. Du musst das event "loaded" verwenden, denn das wird getriggert, wenn alle Bilder geladen sind. Also dein Ladebild über das Panorama- bzw. 3D-Bild legen und in der Funktion loaded unsichtbar machen:
<div id="peelwrapper">
<img src=" ... " hier alles was Du für Peel benötigst >
<img src="loadimg.gif" id="loadimg">
</div>
CSS:
#peelwrapper {
position: relative;
}
#loadimg {
position: absolute;
left: 0;
top: 0;
}
Und der Kern der Sache: In der Funktion loaded das Ladebild unsichtbar machen:
// `"loaded"` Event is the one announcing when the instance is "locked and loaded".
// At this time, all is prepared, preloaded and configured for user interaction
// or animation.
//
loaded: function(e){
document.getElementById("loadimg").style.display = "none";
get(_images_).length > 1 || t.css({ backgroundImage: url(reel.substitute(opt.path+get(_image_), get)) }).attr({ src: cdn(transparent) });
Wenn Du statt dessen die Opacity von 1 auf 0 änderst, kannst Du mit transition ein geschmeidiges Ausblenden des Bildes erreichen. Allerding musst Du es dann durch pointer-events: none; für die Mausaktionen durchlässig machen.