Skip to content
This repository
tree: 79caf7ba65
Fetching contributors…

Cannot retrieve contributors at this time

file 51 lines (45 sloc) 1.33 kb
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
.wrap {
width: 150px;
height: 150px;
background-color: #eeeeee;
margin: 25px;
}
.transform {
width: 130px;
height: 130px;
padding: 10px;
background-color: deeppink;
}
.ie {

}
</style>
</head>

<body>

<div class="wrap">
<div class="transform">Transform This</div>
</div>
<div class="wrap">
<div class="transform ie">Transform This</div>
</div>
<div class="wrap">
<div class="transform ie">Transform This</div>
</div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script type="text/javascript" src="../src/jquery.transform.js"></script>
<script type="text/javascript">
$('.transform').click(function() {
$(this).transform({scale: '1.25', skew: '25', rotate: 180, reflectY: true, translate: 25}, {forceMatrix: true});
});

var i = 0;
$('.ie').unbind().click(function() {
$(this).transform({scale: '1.25', skew: '25', rotate: 180, reflectY: true, translate: 25});
});

</script>
</body>
</html>
Something went wrong with that request. Please try again.