How can a constant be defined for use with webkitTransition?
<p>How can the following be rewritten to use a variable:</p>

<pre><code>element.style.webkitTransition = "opacity 1.0s ease";
</code></pre>

<p>I tried these but none of them work:</p>

<pre><code>var kDuration = 1.0;
element.style.webkitTransition = "opacity kDurations ease";

var kDuration = 1.0;
element.style.webkitTransition = "opacity kDuration ease";

var kDuration = 1.0;
element.style.webkitTransition = "opacity kDuration s ease";

var kDuration = 1.0;
element.style.webkitTransition = "opacity kDuration + s ease";

var kDuration = 1.0s;
element.style.webkitTransition = "opacity kDuration ease";
</code></pre>
