Skip to content
CSS get/set and animate background position values independently
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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

Get the CSS background positions's X component


Set the CSS background positions's Y component

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

Animate the background positions X and Y component

  backgroundPositionY: '100%',
  backgroundPositionX: '100%'
}, 1000);

Requires jQuery 1.4.3+.

Something went wrong with that request. Please try again.