v2 エフェクト

BgEffectParticle

Three.js を用いた3Dパーティクル群エフェクト。useThreeJS: true の設定が必要です。

← v2 エフェクト一覧


デモ

注意: このエフェクトは Three.js ベースです。デモページでは useThreeJS: truemountId の指定が必要です。


概要

Three.js を使用した3Dパーティクルグリッドエフェクトです。マウスに反応してパーティクルが波のように揺れます。他のエフェクトとは独立した実装であり、useThreeJS: true front-matter 設定が必要です。

注意: Three.js を外部からロードする必要があります。useThreeJS: true を front-matter に設定してください。


YAML パラメーター

パラメーター デフォルト 説明
mountId 'hero-particles' マウント先 <div> の id 属性値

使用方法

front-matter 設定

---
layout: layouts/base.njk
useThreeJS: true
effects:
  - BgEffectParticle
---

HTML マウント要素

<div id="hero-particles" style="width:100%;height:100vh;"></div>

カスタム mountId の指定(セクション適用時)

sections:
  - template: hero
    effects:
      - name: BgEffectParticle
        mountId: my-canvas-container

内部仕様

項目
グリッド横パーティクル数 121
グリッド縦パーティクル数 60
使用ライブラリ Three.js

← v2 エフェクト一覧 | ↑ 目次