dmotz / oriDomi

🪭 Fold up DOM elements like paper
https://oxism.com/oriDomi
MIT License
2.41k stars 207 forks source link

Start element folded up #27

Closed custa1200 closed 10 years ago

custa1200 commented 10 years ago

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?

dmotz commented 10 years ago

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);