New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ng-slot-machine-button

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-slot-machine-button

An Angular component module with slot machine button effects

  • 1.0.0-alpha.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Angular Slot Machine Button Component Module

Slot Machine Buttons Demo

See Also

  • Other component libraries
  • React slot machine button

Install & Import

npm install ng-slot-machine-button

In the module (e.g. AppModule) where it will be used:

/* ... */
import { SlotMachineButtonModule } from 'ng-slot-machine-button';

@NgModule({
  /* ... */
  imports: [
    SlotMachineButtonModule,
    BrowserModule
  ]
})
export class AppModule { }

Example

1 minute setup
<lib-slot-machine-button [activeOnHover]="true">
  <lib-slot-machine-wheel>
    <div class="idle part">Slot Machine Button</div>
    <div class="active part">Slot Machine Button</div>
  </lib-slot-machine-wheel>
</lib-slot-machine-button>
A more advanced one
<lib-slot-machine-button [activeOnHover]="true" [bottomToTop]="true" [fadeBack]="true" [fadeBackDuration]="0.3">
  <lib-slot-machine-wheel>
    <div class="idle part">Slot</div>
    <div class="active part">Slot</div>
  </lib-slot-machine-wheel>
  <lib-slot-machine-wheel [delay]="0.1">
    <div class="idle part">Machine</div>
    <div class="active part">Machine</div>
  </lib-slot-machine-wheel>
  <lib-slot-machine-wheel [delay]="0.2">
    <div class="idle part">Button</div>
    <div class="active part">Button</div>
  </lib-slot-machine-wheel>
</lib-slot-machine-button>

Inputs

// ng-slot-machine-button
@Input() activeOnHover: boolean;
@Input() bottomToTop: boolean;
@Input() delay = 0;
@Input() duration = 0.5;
@Input() ease = Expo.easeInOut;
@Input() fadeDuration: number;
@Input() groupID: number;
@Input() isActive: boolean;
// Fade Back
@Input() fadeBack: boolean;
@Input() fadeBackDuration: number;
@Input() fadeBackEase = Linear.easeNone;
// ng-slot-machine-wheel
@Input() groupID: number;
@Input() delay = 0;

Keywords

FAQs

Package last updated on 30 Sep 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc