dmotz / oriDomi

🪭 Fold up DOM elements like paper

Home Page:http://oridomi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Start element folded up

custa1200 opened this issue · comments

commented

Is there a way to load the page with the element already folded up to being not visible, and then when an event occurs to unfold it into view?

You can set the speed option to 0 when you create the instance and fold it completely, e.g.:

var example = new OriDomi('.example', { speed: 0 });
example.accordion(90);
// later...
example.setSpeed(700).accordion(0);