This is the plugin that maniplates CSS transform propaties.
- Include jQuery and jQuery.transform
$elem.transfrom(fn, value)
See sample.html
.
<div id="box"></div>
<script src="jquery.js"></script>
<script src="jquery.transform.js"></script>
<script>
jQuery(function($) {
$('#box')
.transform('rotate', '10deg')
.transform('scale', '.8');
});
</script>
- @param {String}
fn
Transform function's name. ex:"translate"
,"scale"
,"rotate"
,"skew"
. - @param {String}
value
Function's value. - @returns {jQuery}
- @param {String}
fn
Transform function's name. ex:"translate"
,"scale"
,"rotate"
,"skew"
. - @returns {String} The value you set before getting.
- @param {Object}
data
transform
value list. ex:{ translate:0, scale:1 }
- @returns {jQuery}
- @returns {Object} Holds
transform
value list.
- Written by Ginpei
- Twitter: @ginpei_jp, @ginpei_en
- Blog (Japanese): http://ginpen.com