angular-xgallerify

1.0.2 • Public • Published

angular-xGallerify

AngularJS directive for jquery.xGallerify

Demos

angular-xGallerify Demo

Usage

  1. Install via either bower, npm or downloaded files:
    1. via bower: bower install --save angular-xGallerify
    2. via npm: npm install --save angular-xgallerify
    3. via CDN (jsDelivr)
    4. via downloaded files
  2. Add jtt_angular_xgallerify to your application's module dependencies.
  3. Include dependencies and angular-xGallerify in your HTML.
    1. When using bower
    <!-- dependencies -->
    <script src="bower_components/jquery/dist/jquery.min.js"></script>
    <script src="bower_components/angular/angular.min.js"></script>
    <script src="bower_components/xGallerify/dist/jquery.xgallerify.min.js"></script>
     
    <!-- angular-xGallerify -->
    <script src="node_modules/angular-xGallerify/dist/angular-xgallerify.min.js"></script>
    1. When using npm
    <!-- dependencies -->
    <script src="node_modules/jquery/dist/jquery.min.js"></script>
    <script src="node_modules/angular/angular.min.js"></script>
    <script src="node_modules/xgallerify/dist/jquery.xgallerify.min.js"></script>
     
    <!-- angular-xGallerify -->
    <script src="node_modules/angular-xgallerify/dist/angular-xgallerify.min.js"></script>
    1. When using CDN (jsDelivr)
    <!-- dependencies -->
    <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
    <script src="//cdn.jsdelivr.net/jquery.xgallerify/latest/jquery.xgallerify.min.js"></script>
     
    <!-- angular-xGallerify -->
    <script src="//cdn.jsdelivr.net/angular.xgallerify/latest/angular-xgallerify.min.js"></script>
    1. When using downloaded files
    <!-- dependencies -->
    <script src="YOUR_PATH/jquery.min.js"></script>
    <script src="YOUR_PATH/angular.min.js"></script>
    <script src="YOUR_PATH/jquery.xgallerify.min.js"></script>
     
    <!-- angular-xGallerify -->
    <script src="YOUR_PATH/angular-xgallerify.min.js"></script>
  4. Use the directive xgallerify as html attribute

Sample

<div xgallerify>
    <img src="http://placehold.it/600x400">
    <img src="http://placehold.it/600x320">
    <img src="http://placehold.it/600x320">
    <img src="http://placehold.it/600x400">
    <img src="http://placehold.it/600x600">
    <img src="http://placehold.it/600x400">
    <img src="http://placehold.it/600x600">
    <img src="http://placehold.it/600x400">
    <img src="http://placehold.it/600x400">
    <img src="http://placehold.it/600x600">
    <img src="http://placehold.it/600x320">
    <img src="http://placehold.it/600x400">
    <img src="http://placehold.it/600x400">
</div>

Parameters

Set your xGallerify parameters like this:

<div xgallerify="{ 'margin':10, 'mode':'bootstrap' }">
</div>

All parameters

Get the full list of parameters at the original project page: jquery.xGallerify

Compatibility

<div xgallerify>
</div>

is equal to

<div data-xgallerify>
</div>

Package Sidebar

Install

npm i angular-xgallerify

Weekly Downloads

2

Version

1.0.2

License

MIT

Last publish

Collaborators

  • johnnythetank