npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

alogorithm2-animation

v2.2.2

Published

Animated logo mark generator with morphing triangles and blobs

Readme

Alogorithm2 Animation

三角形パターンのモーフィングアニメーションと有機的なブロブシェイプを提供するブラウザ向けアニメーションライブラリです。React、Vue、Astroアプリケーションで美しいアニメーションロゴマークを作成できます。

English

特徴

  • 🎨 モーフィングアニメーション - ランダムに生成された三角形パターン間のスムーズな遷移
  • 🌊 有機的なブロブシェイプ - 時間とともに進化する自然な見た目のブロブマスク
  • フレームワークサポート - React、Vue、Astro用のネイティブコンポーネント
  • 🎯 2つのアニメーションモード - "morph"(クロスフェード)または"fly"(移動)遷移を選択
  • 🎛️ 完全にカスタマイズ可能 - サイズ、タイミング、色、アニメーション動作を制御
  • 📦 軽量 - 最小限の依存関係、ブラウザ向けに最適化

インストール

npm install alogorithm2-animation
# または
yarn add alogorithm2-animation

使用方法

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}
/>

プロパティ

| プロパティ | 型 | デフォルト | 説明 | |------|------|---------|-------------| | width | number | 400 | アニメーションキャンバスの幅 | | height | number | 400 | アニメーションキャンバスの高さ | | seed | string | ランダム | 初期パターン生成用のシード | | mode | 'morph' | 'fly' | 'morph' | アニメーション遷移スタイル | | duration | number | 2000 | アニメーション時間(ミリ秒) | | interval | number | 4000 | アニメーション間の一時停止時間(ミリ秒) |

アニメーションモード

  • morph: 三角形がスムーズな不透明度遷移でパターン間をクロスフェード
  • fly: 三角形が物理ベースのアニメーションで位置から移動

コアユーティリティ

コアアニメーションユーティリティを直接使用することもできます:

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

// 三角形パターンを生成
const triangles = generateTriangles(seed, size, 'morph')

// ブロブパスを生成
const blobPath = generateBlobPath(seed, size)

開発

# 依存関係をインストール
yarn install

# React開発環境を実行
yarn dev:react

# Vue開発環境を実行
yarn dev:vue

# Astro開発環境を実行
yarn dev:astro

# テストを実行
yarn test:react
yarn test:vue

# プロダクション用にビルド
yarn build

# 注: E2Eテストは現在保留中です

ブラウザサポート

このライブラリは以下をサポートする最新のブラウザが必要です:

  • SVGアニメーション
  • ES6+ JavaScript機能
  • CSSカスタムプロパティ
  • requestAnimationFrame API

ライセンス

GPL-3.0 License

クレジット

アイデアマンズ株式会社により作成。Alogorithm v2ビジュアルアイデンティティシステムに基づいています。