0.0.2 • Published 9 years ago

ngkit.zoom v0.0.2

Weekly downloads
5
License
ISC
Repository
github
Last release
9 years ago

ngKit image zoom

Lightweight image zoom for Angular (similar to Medium's).

<img ui-zoom="'large.png'"
     src="thumb.jpg" />

Note that ui-zoom attribute is an expression, don't forget extra quotes if you're using string literals. If you omit the value, src attribute is taken.

See zoom.css for example styling.

Usage

Add 'ui-zoom' directive to your Angular module directly:

var app = angular.module('myApp', []);

require('ngkit.zoom')(app);

Note: ngKit requires Browserify.

License

ISC / Boris Okunskiy