Menu icon Foundation

Developer | Moscow

My Posts


My Comments

Hig commented on Hig's post about 3 years

to: Rafi Benkual
Yes, I'm trying to hide the whole Orbit carousel then show it again.
Reinitialize functions in the plugin is not. It is possible to destroy the object and create a new, but it will not work :(
 
 
 
$(".orbit").foundation("destroy");
var Orbit = new Foundation.Orbit($(".orbit"), {
timerDelay: 100
});
 
I read the plugin source code. https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.3/foundation.js
The problem lies in the animation. Foundation.Motion.animateIn(), Foundation.Motion.animateOut()Partially solved exhibiting options useMUI = false.
 
 
 
$(document).foundation();

var Orbit = new Foundation.Orbit($(".my-orbit"), {
timerDelay: 100,
useMUI: false
});
or
 
Foundation.Orbit.defaults.timerDelay = 100;
Foundation.Orbit.defaults.useMUI = false;
$(document).foundation();
 
This crutch....
Not the best solution to the problem :(
 
to: Zackery Gianotti
The problem is not in this.
The timer must be put before the initialization of the object. Otherwise it is meaningless. 
 
 
$(document).foundation();

setTimeout(function(){
$(".orbit").hide();
}, 2000);

setTimeout(function(){
$(".orbit").show();
}, 6000); // default timerDelay 5000ms
Foundation.Orbit.defaults.timerDelay = 100; // for second orbit
 

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Hig's post about 3 years

to: Rafi Benkual
Yes, I'm trying to hide the whole Orbit carousel then show it again.
Reinitialize functions in the plugin is not. It is possible to destroy the object and create a new, but it will not work :(
 
 
 
$(".orbit").foundation("destroy");
var Orbit = new Foundation.Orbit($(".orbit"), {
timerDelay: 100
});
 
I read the plugin source code. https://cdnjs.cloudflare.com/ajax/libs/foundation/6.2.3/foundation.js
The problem lies in the animation. Foundation.Motion.animateIn(), Foundation.Motion.animateOut()Partially solved exhibiting options useMUI = false.
 
 
 
$(document).foundation();

var Orbit = new Foundation.Orbit($(".my-orbit"), {
timerDelay: 100,
useMUI: false
});
or
 
Foundation.Orbit.defaults.timerDelay = 100;
Foundation.Orbit.defaults.useMUI = false;
$(document).foundation();
 
This crutch....
Not the best solution to the problem :(
 
to: Zackery Gianotti
The problem is not in this.
The timer must be put before the initialization of the object. Otherwise it is meaningless. 
 
 
$(document).foundation();

setTimeout(function(){
$(".orbit").hide();
}, 2000);

setTimeout(function(){
$(".orbit").show();
}, 6000); // default timerDelay 5000ms
Foundation.Orbit.defaults.timerDelay = 100; // for second orbit
 

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content