dmotz / oriDomi

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

folded dives behind elements in chrome, but is a-okay in firefox. #41

Open dreamalligator opened 9 years ago

dreamalligator commented 9 years ago

I pulled this out of my other issue, because it is unrelated.

dmotz commented 9 years ago

Do you have a demo up somewhere (jsfiddle etc.)?

ilyen85 commented 8 years ago

Ok, im probably super late with this, but I think he meant this:

Im using the stairs effect, chrome and firefox folds differently pasting in some pictures to discribe it better: In chrome: https://www.dropbox.com/s/lxm0dinvolnqu58/Screenshot%202016-05-10%2016.07.29.png?dl=1

In firefox: https://www.dropbox.com/s/6723n2bfenuxa28/Screenshot%202016-05-10%2016.11.44.png?dl=1

I couldn't figure out a clean way to solve it though :(

.oridomi-holder { -moz-transform-style: initial overflow: hidden }

the above css solved my problem, but i bet its not the best way to tackle it. Sorry forgot to mention that i wanted to achieve the chrome behaviour! So the above will fold things behind the original depth of things.