Skip to content

Commit

Permalink
Clarify #setZoomImageURL usage
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstraw committed Sep 26, 2016
1 parent d4937fa commit 7354527
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ document.querySelector('.enable-button').addEventListener('click', function() {
});
```

### `Drift#setZoomImageURL`
### `Drift#setZoomImageURL(imageURL)`

Change the URL of the zoom image. This only has a visible effect while your Drift is currently open. When opening, Drift always pulls the zoom image URL from the specified `sourceAttribute`. If you want to make a "permanent" change that will persist after the user leaves and re-enters your Drift trigger, you update its `sourceAttribute` as well (default `data-zoom`). For more information about this method, please see [issue #42](https://github.com/imgix/drift/issues/42).
Change the URL of the zoom image to the passed string. This only has a visible effect while your Drift is currently open. When opening, Drift always pulls the zoom image URL from the specified `sourceAttribute`. If you want to make a "permanent" change that will persist after the user leaves and re-enters your Drift trigger, you update its `sourceAttribute` as well (default `data-zoom`). For more information about this method, please see [issue #42](https://github.com/imgix/drift/issues/42).

``` javascript
var triggerEl = document.querySelector('img');
Expand Down

0 comments on commit 7354527

Please sign in to comment.