title: CSS :focus Not Working in iOS
body: <p>I have a box with an image in it. On hover / focus, I want a color overlay and caption to fade in over it. It works perfectly in almost every browser and device except on iOS devices.</p>
  
  <p>I am using both :hover and :focus pseudo-classes to accommodate various devices, but it doesn't seem to help with iOS. Nothing happens when you mouse over.</p>
  
  <p>Here is my code, and I also have a fully functioning <a href="http://jsfiddle.net/n5d4s5hm/4/" rel="nofollow">fiddle</a>.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    padding: 0;
    margin: 0;
  }
  .my_image {
    float: left;
    width: 50%;
    margin: 0;
    padding: 0;
    position: relative;
  }
  .my_image p {
    position: absolute;
    color: #fff;
    display: block;
    padding: 0;
    margin: 0;
    opacity: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    /* IE 9 */
    -webkit-transform: translate(-50%, -50%);
    /* Safari and Chrome */
    -webkit-transition: opacity .25s ease;
    -moz-transition: opacity .25s ease;
  }
  .overlay {
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(121, 87, 164, .80);
    text-align: center;
    opacity: 0;
    -webkit-transition: opacity .25s ease;
    -moz-transition: opacity .25s ease;
  }
  .my_image:hover .overlay,
  .my_image:hover p,
  .my_image:focus .overlay,
  .my_image:focus p {
    opacity: 1;
    visibility: visible;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="my_image"&gt;
    &lt;img src="https://unsplash.imgix.net/photo-1428976365951-b70e0fa5c551?fit=crop&amp;fm=jpg&amp;h=225&amp;q=75&amp;w=350" /&gt;
    &lt;div class="overlay"&gt;&lt;/div&gt;
    &lt;p&gt;Overlay Caption&lt;/p&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is there some way I can make this work without JS? I am using jQuery on the page so I'm not totally opposed, I just didn't think it was necessary.</p>