title: Using CSS calc() with .animate()
body: <p>I'm trying to make a little animation but I'm failing to make it responsive, because "calc()" seems to not work with .animate.
  Is there another solution to this here?</p>
  
  <pre><code>if (time == 1) {
    $("#message").animate({ marginTop: "calc(-15px + .8vw)" });
  } else {
    $("#message").animate({ marginTop: "calc(0px + .8vw)" });
  }
  </code></pre>
  
  <p>With great and best regards,
  BERNARDO</p>
  
  <p>EDIT: I'm trying to animate a message that appears on my website onchange() of a dropdown menu.
  It should be responsive so that's why I'm using calc().</p>
  
  <pre><code>&lt;a&gt;Time: &lt;/a&gt;&lt;select id="time" onchange="setTime()" name="time" required&gt;
                      &lt;option value="1" selected&gt;-&lt;/option&gt;
                      &lt;option value="3"&gt;-&lt;/option&gt;
                &lt;/select&gt;&lt;/br&gt;
  </code></pre>
  
  <p>So is there like an alternative to make it responsive on another way without calc()?</p>