Check out this test on a desktop browser by visiting the following link (JSFiddle):
a {
background: gray;
display: block;
margin: 100px;
padding: 100px;
}
a span {
opacity: 0;
-webkit-transition: 0.5s;
visibility: hidden;
}
a:hover span {
opacity: 1;
-webkit-transition: 0.5s;
visibility: visible;
}
<a href="#">a <span>span</span></a>
When you hover over the anchor element, the span element fades in as expected.
Now try accessing it from an iOS device. Observation: nothing happens.
Here are some observations:
- If the transition property is not included, it works.
- If either the opacity or visibility property is not included, it works.
- The webkitTransitionEnd event is not triggered for the opacity or visibility property.
Are there any potential solutions to this issue?