I have a login box that opens when clicking a link.
HTML:
<div class="loginBox">
<iframe src="pathToExternalSite" id="loginIFrame"></iframe>
</div>
I am using a transition effect in CSS:
.logingBox {
z-index: 9999;
width: 300px;
right: calc((100% - 1190px) / 2 + 72px);
height: 0px;
position: fixed;
overflow: hidden;
background: #dbdbdb;
transition: height 0.4s ease-in-out;
}
.loginIFrame {
border: 0 none;
height: 100%;
overflow: hidden;
width: 100%;
}
When clicking on the link, a new class is added to it to give it a height:
.logingBox.visible {
height: 525px;
}
The problem:
It works perfectly in all browsers. However, in Edge (on the Surface tablet), the div opens but the iframe contents are not visible until I click on it.
I tried to set focus on the first field inside the iFrame (via jQuery after the visible class is added), but I am unable to access the iframe contents since it is on a different server.