You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<!doctype html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>My Learning Website</title>
|
|
|
|
<link href="/styles/styles.css" rel="stylesheet" type="text/css">
|
|
|
|
<link href="/webdevelopment/styles/styles.css" rel="stylesheet" type="text/css">
|
|
|
|
<link href="../styles/samples.css" rel="stylesheet" type="text/css">
|
|
|
|
<script type="module" src="/scripts/article.js" defer></script>
|
|
|
|
<script type="text/javascript" src="/jQuery/jquery-3.6.3.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$("document").ready(function() {
|
|
|
|
$("#go").click(function() {
|
|
|
|
$("#testDiv").animate({width: 400}, 300)
|
|
|
|
.animate({height: 300}, 400)
|
|
|
|
.animate({left: 200}, 500)
|
|
|
|
.animate({top: "+=100", borderWidth: 10}, "slow")
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
#testDiv {
|
|
|
|
position: relative;
|
|
|
|
width: 150px;
|
|
|
|
height: 100px;
|
|
|
|
margin: 10px;
|
|
|
|
padding: 20px;
|
|
|
|
background: #b3c8d0;
|
|
|
|
border: 1px solid black;
|
|
|
|
font-size: 16pt;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Quick jQuery Animation Intro</h1>
|
|
|
|
<div id="content">
|
|
|
|
<p>jQuery provides some basic animation features for showing and hiding elements, as well as a low-level animation function
|
|
|
|
that can be used to animate several CSS properties (as long as they are numeric).</p>
|
|
|
|
<button id="go">Start Animation</button>
|
|
|
|
<div id="testDiv"></div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|