Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sodhanalibrary/anggifpreview

AngularJS Directive For GIF Preview As Like Facebook
https://github.com/sodhanalibrary/anggifpreview

Last synced: 12 days ago
JSON representation

AngularJS Directive For GIF Preview As Like Facebook

Awesome Lists containing this project

README

        

# angGifPreview
AngularJS Directive For GIF Preview As Like Facebook
###Explanation
[Click here] (http://blog.sodhanalibrary.com/2016/03/facebook-like-gif-preview-using.html) to read complete explanation
###Demo
[Click here] (http://demo.sodhanalibrary.com/angular/gif_preview/angGifPreview/demo.html) to see demo

##Implementation
###Add AngularJS
```js

```
###Add CSS and JS files
```js

```
###HTML
```js

```
####Attributes
**gif** : gif image path

**preview** : gif preview image path
##JS Code
import **gifPreview** module as like shown in below code
```js
(function(angular) {
'use strict';
angular.module('sampleExample', ['gifPreview'])
.controller('Controller', ['$scope', function($scope) {
$scope.previewImage = 'sample_first_frame.png';
$scope.gifImage = 'sample_giphy.gif';
}]);
})(window.angular);
```