dmotz / oriDomi

🪭 Fold up DOM elements like paper

Home Page:http://oridomi.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The anchor to fold in latest version

artrayd opened this issue · comments

"You can specify the anchor to fold from (left, right, top, or bottom) as the second argument:
folded.curl(-50, 'top');"

It works fine in previous versions, but don't work in latest, also in previous version on mouseover events oridomi looks much more better works better. Maybe I am doing something wrong...

Here is my code:

It works in old version, but doesn't work in new:

<style> #accord{ width: 400px; height: 150px; background: #3775f4; color: #fff; text-align: center; font-size: 2em; } </style>
Hello World
<script src="oridomi.js"></script> <script> (function(){ function init(){ var Accord = document.getElementById('accord'); var AccordOptions = new OriDomi(Accord, { vPanels: 4, hPanels: 4, perspective: 500, shading: true, touchEnabled: false, speed: 1000 }); AccordOptions.accordion(0,'r'); Accord.addEventListener('mouseover', function(){ AccordOptions.accordion(100); }, false); Accord.addEventListener('mouseout', function(){ AccordOptions.reset(); }, false); } document.addEventListener('DOMContentLoaded', init, false); })(); </script>

Can you put up a demo somewhere like jsFiddle? Not seeing this in the latest version.

Now it works fine, but I had troubles with file I downloaded on 15/08/2014.