1.3.0 • Published 4 years ago

ng-gestures-intro v1.3.0

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Gestures Intro

An Angular Library to show users instructions with hand gestures images while introducing the app/feature.

Why use this ?

So we can show users how to interact with website efficiently and how they can get most out of it ! Also this library is very generic and easy to use so you don;t have to start from scratch in making introduction to website.

How does it look ?

Stackblitz Demo >>

Gesture:FLICK | DOUBLE_TAP

How to use this ?

Gestures intro can be used in following way:

*.module.ts

import { GesturesIntroModule } from 'ng-gestures-intro';

@NgModule({
  ...
  imports: [
    ...
    GesturesIntroModule
    ...
  ]
  ...
})

Declare an array which can be used to show instructions in component file.

*.component.ts

import {GestureIntroItem, Gestures} from 'ng-gestures-intro';

export class SomeComponent{
  
  introSet: GestureIntroItem[] = [
    
    // Each new GestureIntroItem adds a new card 
    // type : specifies the action which used to show image
    // text : which will be shown below the image
   
    new GestureIntroItem({
      type: Gestures.FLICK,
      text: 'Flick the post (from right to left) to hide it (forever)'
    }),
    new GestureIntroItem({
      type: Gestures.DOUBLE_TAP,
      text: 'Double Tap on a post to open comments.'
    }),
  ];
  
  ...
  ...
}

Add the component <gestures-intro> in the HTML template.

*.component.html

...

<gestures-intro [introSet]="introSet">
</gestures-intro>

...

Gestures Types Available Right Now in Gestures enum

NONE,
TAP,
DOUBLE_TAP,
DRAG,
FLICK,
PINCH,
SPREAD

Events

close

The popup will emit this event when it is closed. Can be used to see when user closes it and hide it forever.

Gesture Image Credits

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago