$(".twentytwenty-container").each(function() {
var $this = $(this);
clearTimeout(timer);
var timer = setTimeout(function() {
$this.twentytwenty({
default_offset_pct: 0.5,
no_overlay: true,
move_slider_on_hover: true,
move_with_handle_only: false,
click_to_move: false
});
}, 200);
})
var i = 0;
$(".twentytwenty-container").each(function () {
setTimeout(function () {
$(this).twentytwenty({
default_offset_pct: 0.5,
no_overlay: true,
move_slider_on_hover: true,
move_with_handle_only: false,
click_to_move: false
});
}, i * 200);
i++;
});
var manager = new THREE.LoadingManager();
manager.onLoad = function () {
console.log( 'test all loaded' );
};
или метод onProgress