$(function () {
$('#button').click( function () {
// Add a call to animate to change the background to
// the color #d4ecf8.
$('#writing').animate({ backgroundColor: "#d4ecf8" },1000);
});
});
<html>
<head>
<title>Animations</title>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script> <script src="script.js"></script>
<link href="style.css" rel="stylesheet"/>
</head>
<body>
<div id="button">Change</div>
<div id="writing" class="text">This is the text that changes!</div>
</body>
</html>