🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@ar-dacity/ardacity-aurora

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ar-dacity/ardacity-aurora

WebGL aurora effect for React applications

1.0.2
latest
npm
Version published
Weekly downloads
7
-41.67%
Maintainers
1
Weekly downloads
 
Created
Source

ArDacity Aurora

A beautiful WebGL-powered aurora effect component for React applications.

Installation

npm install @ar-dacity/ardacity-aurora

Usage

After installation, the component will be automatically added to your project's components directory.

import { Aurora } from './components/ArDacityUi/Aurora';

function App() {
  return (
    <div style={{ width: '100%', height: '300px' }}>
      <Aurora
        colorStops={["#3A29FF", "#FF94B4", "#FF3232"]}
        blend={0.5}
        amplitude={1.0}
        speed={0.5}
      />
    </div>
  );
}

Props

PropTypeDefaultDescription
colorStopsstring[]["#00d8ff", "#7cff67", "#00d8ff"]Array of color stops for the gradient
amplitudenumber1.0Controls the amplitude of the aurora effect
blendnumber0.5Controls the blend factor of the aurora effect
speednumber1.0Controls the animation speed

Requirements

This component requires the OGL library. It's listed as a peer dependency, so you'll need to install it in your project:

npm install ogl

How It Works

The Aurora component creates a beautiful animated gradient effect similar to the aurora borealis. It uses WebGL for rendering and animation, providing an efficient and smooth experience.

The component:

  • Uses WebGL shaders for the gradient and animation
  • Responds to container size changes
  • Has customizable colors, amplitude, and speed

License

MIT

Keywords

react

FAQs

Package last updated on 05 May 2025

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