mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
effects: demo visualising easing functions, tuning
This commit is contained in:
parent
9571d9614c
commit
5e2ed0c541
@ -11,7 +11,7 @@
|
|||||||
float: left;
|
float: left;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 160px;
|
height: 120px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@ -28,7 +28,7 @@
|
|||||||
var graph = $("<div/>").addClass("graph").appendTo("#graphs");
|
var graph = $("<div/>").addClass("graph").appendTo("#graphs");
|
||||||
$("<div/>").text(++i + ". " + name).appendTo(graph);
|
$("<div/>").text(++i + ". " + name).appendTo(graph);
|
||||||
|
|
||||||
var canvas = $("<canvas/>").appendTo(graph)[0]
|
var canvas = $("<canvas/>").width(100).height(100).appendTo(graph)[0]
|
||||||
canvas.width = 100;
|
canvas.width = 100;
|
||||||
canvas.height = 135;
|
canvas.height = 135;
|
||||||
var ctx = canvas.getContext("2d");
|
var ctx = canvas.getContext("2d");
|
||||||
|
Loading…
Reference in New Issue
Block a user