Drift Build Status

Drift allows you to easily add “zoom on hover” functionality to your site’s images, using lightweight, no-dependency JavaScript.

More examples and additional documentation for the Drift library can be found on GitHub at: https://github.com/imgix/drift.

See a demo

Example

<img src="https://assets.imgix.net/dog.png?w=400" data-zoom="https://assets.imgix.net/dog.png?w=1200">

<p>This is a simple description of the dog picture.</p>
new Drift(document.querySelector('img'), {
  paneContainer: document.querySelector('p')
});

More tools