Socket
Book a DemoInstallSign in
Socket

alogorithm2-animation

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

alogorithm2-animation

Animated logo mark generator with morphing triangles and blobs

latest
npmnpm
Version
2.2.2
Version published
Maintainers
1
Created
Source

Alogorithm2 Animation

A browser-focused animation library providing morphing triangular patterns and organic blob shapes. Create beautiful, animated logo marks with customizable transitions for React, Vue, and Astro applications.

Features

  • 🎨 Morphing Animations - Smooth transitions between randomly generated triangle patterns
  • 🌊 Organic Blob Shapes - Natural-looking blob masks that evolve over time
  • Framework Support - Native components for React, Vue, and Astro
  • 🎯 Two Animation Modes - Choose between "morph" (crossfade) or "fly" (movement) transitions
  • 🎛️ Fully Customizable - Control size, timing, colors, and animation behavior
  • 📦 Lightweight - Minimal dependencies, optimized for browsers

Installation

npm install alogorithm2-animation
# or
yarn add alogorithm2-animation

Usage

React

import { Alogorithm2Animation } from 'alogorithm2-animation/react'

function App() {
  return (
    <Alogorithm2Animation 
      width={400} 
      height={400} 
      mode="morph"
      seed="my-seed"
      duration={2000}
      interval={4000}
    />
  )
}

Vue

<template>
  <Alogorithm2Animation 
    :width="400" 
    :height="400" 
    mode="morph"
    seed="my-seed"
    :duration="2000"
    :interval="4000"
  />
</template>

<script>
import Alogorithm2Animation from 'alogorithm2-animation/vue'

export default {
  components: {
    Alogorithm2Animation
  }
}
</script>

Astro

---
import Alogorithm2Animation from 'alogorithm2-animation/astro'
---

<Alogorithm2Animation 
  client:load
  width={400} 
  height={400} 
  mode="morph"
  seed="my-seed"
  duration={2000}
  interval={4000}
/>

Props

PropTypeDefaultDescription
widthnumber400Width of the animation canvas
heightnumber400Height of the animation canvas
seedstringrandomSeed for initial pattern generation
mode'morph' | 'fly''morph'Animation transition style
durationnumber2000Animation duration in milliseconds
intervalnumber4000Pause between animations in milliseconds

Animation Modes

  • morph: Triangles crossfade between patterns with smooth opacity transitions
  • fly: Triangles move from their positions with physics-based animations

Core Utilities

You can also use the core animation utilities directly:

import { 
  generateTriangles,
  generateBlobPath,
  easeInOutSine,
  interpolateColor
} from 'alogorithm2-animation'

// Generate triangle pattern
const triangles = generateTriangles(seed, size, 'morph')

// Generate blob path
const blobPath = generateBlobPath(seed, size)

Development

# Install dependencies
yarn install

# Run React development environment
yarn dev:react

# Run Vue development environment
yarn dev:vue

# Run Astro development environment
yarn dev:astro

# Run tests
yarn test:react
yarn test:vue

# Build for production
yarn build

# Note: E2E testing is currently on hold

Browser Support

This library requires modern browsers with support for:

  • SVG animations
  • ES6+ JavaScript features
  • CSS custom properties
  • requestAnimationFrame API

License

GPL-3.0 License

Credits

Created by ideaman's Inc. Based on the Alogorithm v2 visual identity system.

FAQs

Package last updated on 15 Jun 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.