Skip to content

Poetro/jQuery.backgroundPosition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

With the plugin you can get/set and animate background position CSS values independently.

Get the CSS background positions's X component

$(elem).css('background-position-x');

Set the CSS background positions's Y component

$(elem).css('background-position-y', 0);

Animate the background positions X and Y component

$(elem).animate({
  backgroundPositionY: '100%',
  backgroundPositionX: '100%'
}, 1000);

Requires jQuery 1.4.3+.

About

CSS get/set and animate background position values independently

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages