title: how to affect two elements(image1 and image2) by clicking on image3
body: <p>I have a school project where <strong>I can't use Javascript.</strong> Just <code>HTML</code> and <code>CSS</code>.
  The theme is <code>Lucky Luke</code>, and I'm trying to make an animation, where he shoots whenever I click another object.</p>
  
  <p>The idea is to have two images on top of each other, where one goes invisible, and the other one goes visible whenever I shoot an object, where the object I click on is the trigger. </p>
  
  <p>The two images should then go back to their original state of opacity after a short period time.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#luckyStand {
    position: absolute;
    opacity: 1;
    bottom: 0;
    left: -250px;
  }
  
  #luckyShoot {
    position: absolute;
    opacity: 0;
    bottom: 0;
    left: -250px;
  }
  
  #db1 {
    position: absolute;
    top: 165px;
    right: 370px;
  }
  
  #db1:target~#luckyShoot {
    opacity: 1;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="db1"&gt;
    &lt;a href="#db1"&gt;
      &lt;img src="images/dalton_brother1.png"&gt;
    &lt;/a&gt;
  &lt;/div&gt;
  
  &lt;div id="luckyStand"&gt;
    &lt;img src="images/lucky_luke_idle.png"&gt;
  &lt;/div&gt;
  
  &lt;div id="luckyShoot"&gt;
    &lt;img src="images/lucky_luke_shooting.png"&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>