Here is a demonstration of the bug I have identified: http://codepen.io/benfrain/full/PZjpxr
In iOS Safari, a peculiar issue occurs when transitioning an element from outside an overflow:hidden container back into it. The element only displays after the transition completes.
.wrapper {
height: 200px;
width: 200px;
overflow: hidden;
}
.item {
transition: transform 1s;
}
.toggled .item {
transform: translate3d(0, 300px, 0);
}
This behavior is most noticeable on iOS 9, but even in iOS 9.2 it persists after multiple runs of the transition. It seems to affect elements containing text specifically. On the other hand, the empty red item transitions correctly.
Are there any alternative solutions that do not involve using margin-top for vertical movement?