Skip to content

ginpei/jQuery.transform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About jQuery.transform

This is the plugin that maniplates CSS transform propaties.

Usage

  1. Include jQuery and jQuery.transform
  2. $elem.transfrom(fn, value)

Sample

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>

References

.transform(fn, value)

  • @param {String} fn Transform function's name. ex: "translate", "scale", "rotate", "skew".
  • @param {String} value Function's value.
  • @returns {jQuery}

.transform(fn)

  • @param {String} fn Transform function's name. ex: "translate", "scale", "rotate", "skew".
  • @returns {String} The value you set before getting.

.transfrom(data)

  • @param {Object} data transform value list. ex: { translate:0, scale:1 }
  • @returns {jQuery}

.transfrom()

  • @returns {Object} Holds transform value list.

Details

License

Copyright

  • Written by Ginpei

Contact

About

The jQuery plugin that maniplates CSS transform propaties.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages