title: How to transform 'b' div while mouse is hover 'a' or 'c'?
body: <p>I don't know which selector I should use. This is my code.</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-html lang-html prettyprint-override"><code>&lt;head&gt;
    &lt;style&gt;
      .button:nth-child(2) {
        transform: scale(1.2);
      }
      
      .button:hover:not(:nth-child(2))~.button:nth-child(2) {
        transform: scale(1);
      }
    &lt;/style&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div class="menu"&gt;
      &lt;div class="button"&gt;gallery&lt;/div&gt;
      &lt;div class="button"&gt;Main&lt;/div&gt;
      &lt;div class="button"&gt;XYZ&lt;/div&gt;
    &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I am trying to scale down the middle div while the mouse is <code>:hover</code> different div in the same parent. My code works well for 'a' div but it doesnt work for 'c'. Could someone help me?</p>