ngx-gooey
v21.0.1
Published
<p align="center"> <img alt="Preview" src="docs/assets/preview.gif" height="260" width="260"> </p> <p align="center"> <h1 align="center">The gooey effect for Angular</h1> </p> The 'gooey effect' has been made popular by various (amazing) blogposts over
Maintainers
Readme
Installation
npm install ngx-gooeyUsage
For Angular with Standalone Components (Recommended):
import { Component } from '@angular/core';
import { Gooey } from 'ngx-gooey';
@Component({
selector: 'app-example',
standalone: true,
imports: [Gooey],
template: `
<ngx-gooey>
<svg width="200" height="100">
<circle cx="50" cy="50" r="20" fill="blue"/>
<circle cx="100" cy="50" r="20" fill="red"/>
</svg>
</ngx-gooey>
`
})
export class ExampleComponent {}For NgModule-based applications:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import the library
import { Gooey } from 'ngx-gooey';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
Gooey, // <-- Add this line
],
providers: [],
bootstrap: [AppComponent],
})
export class AppModule {}Then use it in your template:
<ngx-gooey> … </ngx-gooey>You can put regular HTML elements inside ngx-gooey, but using an SVG is recommended for better browser support. Shape blobbing will be applied to everything within the component.
Visit the website for full documentation, properties and examples.
Related
inspired by gooey-react
