title: How can I use scroll to modify CSS transform scale?
body: <p>I want to scale a div using the scroll function. </p>
  
  <p>I can get it to modify the width causing images to get larger but not the scale inside the transform function which is what i need for my design.</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-js lang-js prettyprint-override"><code>$(document).ready(function() {
    $(window).scroll(function() {
  
        var scroll = $(window).scrollTop();
        $('.layer1').css({
            what goes here to modify transform: scale() ?
          }
  
  
        })
    });
  
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;div class="layer1"&gt;
    &lt;div class="image1"&gt;
      &lt;img src="resources/images/bg/01.jpg" alt=""&gt;
    &lt;/div&gt;
    &lt;div class="image2"&gt;
      &lt;img src="resources/images/bg/02.jpg" alt=""&gt;
    &lt;/div&gt;
    &lt;div class="image3"&gt;
      &lt;img src="resources/images/bg/03.jpg" alt=""&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I want the div "layer1" to scale dependent on the scroll function but i can't tie it to the scale function alone.</p>