title: jQuery How to pass variables in jQuery.css({})
body: <p>When using this script the console returns an error <strong>"SyntaxError: missing } after property list"</strong> How do I pass <em>vscroll</em> variable into .css.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
          jQuery(window).scroll(function(){
              var vscroll = jQuery(this).scrollTop();
              jQuery('#logotext').css({
                  "transform": "translate(0px, "vscroll/2+"px)"
              });
          });  
      &lt;/script&gt;
  </code></pre>