GithubHelp home page GithubHelp logo

lironhazan / ng-micro-interact Goto Github PK

View Code? Open in Web Editor NEW
24.0 1.0 0.0 16.39 MB

Micro Interaction Directive for Angular apps - based on native web animations and nothing more..

License: MIT License

JavaScript 13.91% TypeScript 79.19% CSS 2.44% HTML 4.46%
angular animations web-animation microinteractions

ng-micro-interact's Introduction

npm version License

ng-micro-interact

Tiny Angular lib for micro interactions using the modern web animations API. Inspired by micronjs.

Hit The Demo

Using ng-micro-interact will give you:

  • Types.
  • Excellent/Best performance

Web Animation API It is one of the most performant ways to animate on the Web where supported, letting the browser make its own internal optimizations without hacks, coercion, or Window.requestAnimationFrame().

Easily add micro interactions as follows:

np i ng-micro-interact

import { NgMicroInteractModule } from 'ng-micro-interact'
import { AppComponent } from './app.component';

@NgModule({
  imports:      [ BrowserModule, FormsModule, NgMicroInteractModule ],
  declarations: [ AppComponent ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }
    <div class="sq" ngMicroInteract 
                 [type]="'blink'" 
                 [options]="{ duration: 2000}" 
                 [trigger]="'mouseover'">  Blink! </div>

API:

Inputs:

[type]

Optional, string - if won't be specified the default be 'fade' Could be one of the following: blink, bounce, fade, flicker, groove, jelly, jerk, pop, shake, squeeze, swing, tada

[trigger]

Optional, string, Event name, if won't be specified the default be 'mouseover'

[options]

Optional, KeyframeAnimationOptions, if won't be specified the default be: { duration: 2000 }

ng-micro-interact's People

Contributors

dependabot[bot] avatar lironhazan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ng-micro-interact's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.