Socket
Book a DemoInstallSign in
Socket

ngx-awesome-gallery

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-awesome-gallery

A simple ,Lightweight ,Easy to integrate image gallery in Angular.

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

NgxAwesomeGallery

A simple ,lightweight ,Easy to integrate image gallery in Angular.

#Tested in Angular 7.

Online Demo

http://abdulkhaderp.github.io/awsomeGalleryDemo/index.html

Installation

npm i ngx-awesome-gallery

Usage

  • Import NgxAwesomeGalleryModule in app.module.ts, Add it in imports array :

    import {NgxAwesomeGalleryModule} from 'ngx-awesome-gallery';
    ..
    imports: [
       .. , NgxAwesomeGalleryModule
    ]
    
  • Use the library in the component html :

         <div class="your_container_class">
             <lib-NgxAwesomeGallery [source]=imageData [conf]=conf></lib-NgxAwesomeGallery>
         </div>
    
  • Define width and height with CSS class, "your_container_class". The gallery will take 100% height and width of the DIV wrapper.

  • Provide required data (source and conf) in component .ts file. Source is madatory, conf is optional.

      imageData = [{
     link:"../assets/images/first.jpg", //Path to image file.
     description:"Sample description 1"  //Optional description text. 
           },..]
    
    
    
    conf = {
       "transitionStyle":"scale", 
       "description" : true,  
       "fullWidth" : false
    

    }

conf properties in detail:

##transitionStyle

  • Define the image transition css effect.
  • Default: 'active'
  • Available Options: scale, swing , tilt

##description

  • Decide show/hide the optional description text.

  • Default: false

  • Expected: true or false

##fullWidth

  • If set true, the image will take 100% width of the wrapper DIV. Else, image will be kept as of it's original width.

  • Default: false

  • Expected: true or false

Keywords

Angular

FAQs

Package last updated on 08 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts