_bind_names
_asgns
name_subpath
traverse_subpath
_text

<p><a href="http://docs.jquery.com/UI" title="UI">&laquo; Back to the jQuery UI Docs</a>\n </p><p>The jQuery UI effects core extends the animate function to be able to animate colors as well. It\'s heavily used by the class transition feature and it\'s able to color animate the following properties:\n </p>\n <ul><li> <b>backgroundColor</b>\n </li><li> <b>borderBottomColor</b>\n </li><li> <b>borderLeftColor</b>\n </li><li> <b>borderRightColor</b>\n </li><li> <b>borderTopColor</b>\n </li><li> <b>color</b>\n </li><li> <b>outlineColor</b>\n </li></ul>\n <p>with one of the following combinations:\n </p>\n <ul><li> <b>hex (#FF0000)</b>\n </li><li> <b>rgb (rgb(255,255,255))</b>\n </li><li> <b>names ("black")</b>\n </li></ul>\n <p><br />\n </p><p><div class="options list"><table class="options examples" cellspacing="0"><thead><tr><th>Name</th><th>Type</th></tr></thead><tbody>\n </table><b class="options">Example:</b><table class="options examples" cellspacing="0"><thead><tr><th>Name</th><th>Type</th></tr></thead><tbody>\n <div class="example">\n <ul><li><a href="#demo"><span>Demo</span></a></li><li><a href="#source"><span>View Source</span></a></li></ul>\n <div id="demo" class="tabs-container" rel="125">\n A simple color animation.<br />\n </p>\n <pre>$(&quot;.block&quot;).<a href="http://docs.jquery.com/Events/toggle" title="Events/toggle">toggle</a>(function() {\n $(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: &quot;black&quot; }, 1000);\n },function() {\n $(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: &quot;#68BFEF&quot; }, 500);\n });\n \n </pre>\n <p></div><div id="source" class="tabs-container">\n </p>\n <pre>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" \n "<a href="http://www.w3.org/TR/html4/loose.dtd" class="external free" title="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>"&gt;\n &lt;html&gt;\n &lt;head&gt;\n &lt;script src="<a href="http://code.jquery.com/jquery-latest.js" class="external free" title="http://code.jquery.com/jquery-latest.js">http://code.jquery.com/jquery-latest.js</a>"&gt;&lt;/script&gt;\n \n &lt;script src=&quot;http://ui.jquery.com/latest/ui/effects.core.js&quot;&gt;&lt;/script&gt;\n \n &lt;script&gt;\n $(document).ready(function(){\n $(&quot;.block&quot;).<a href="http://docs.jquery.com/Events/toggle" title="Events/toggle">toggle</a>(function() {\n $(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: &quot;black&quot; }, 1000);\n },function() {\n $(this).<a href="http://docs.jquery.com/Effects/animate" title="Effects/animate">animate</a>({ backgroundColor: &quot;#68BFEF&quot; }, 500);\n });\n \n });\n &lt;/script&gt;\n &lt;style&gt;\n .block { \n color: white;\n background-color: #68BFEF;\n width: 150px; \n height: 70px;\n margin: 10px; \n }\n &lt;/style&gt;\n &lt;/head&gt;\n &lt;body&gt;\n &lt;div class=&quot;block&quot;&gt; Click me&lt;/div&gt;\n &lt;/body&gt;\n &lt;/html&gt;\n </pre>\n <p></div>\n </p><p></div>\n </p><p></tbody></table></div>\n </p><!-- \n Pre-expand include size: 3730 bytes\n Post-expand include size: 5382 bytes\n Template argument size: 3450 bytes\n Maximum: 2097152 bytes\n -->\n \n <!-- Saved in parser cache with key jqdocs_docs:pcache:idhash:3094-1!1!0!!en!2 and timestamp 20090603192313 -->\n

id
animate.html