forked from jquery/jquery-color
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
28 lines (23 loc) · 801 Bytes
/
test.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="jquery-1.5.1.js"></script>
<script type="text/javascript" src="../jquery.color.js"></script>
</head>
<body>
<div id="test" style="background-color: #00ffff">Test string</div>
<script type="text/javascript">
//<![CDATA[
var $div = $("#test");
$div./*animate({"background-color": "#ffff00"}, 300).*/
animate({"background-color": 'transparent'}, 400);
// var savedColor = $div.css("backgroundColor");
// alert(savedColor);
// $div.animate({"background-color": "#ffff00"}, 300).
// animate({"background-color": savedColor}, 400);
//]]>
</script>
</body>
</html>