
Init FX Engine – Interactive, Event-Driven, Lightweight
v2.0.4Init HTML · 2025年8月20日 上架
Bring your WordPress site to life with visual effects, particle backgrounds and hand-drawn seasonal holiday scenes — loaded only where they are used.
- 正在使用
- 90+
- 评分
- 5.0 / 5
- 累计下载
- 2,562
- 最近更新
- 2026年11月20日
贡献者
截图








Init FX Engine brings modern, interactive visual effects to your WordPress site — from fireworks to snowfall, emoji rain, particle backgrounds and full holiday scenes. All effects are fully customizable, and can be triggered via keywords, shortcodes, Block Editor blocks, or special events.
🎉 Celebrate milestones with fireworks or cannon blasts
💬 Let users experience emoji reactions and heart rain in comments
❄️ Classic snowfall with random depth, on an automatic or custom schedule
🎄 Hand-drawn seasonal scenes: Christmas, New Year, Lunar New Year (Tết), Valentine, Mid-Autumn, Halloween — with decorations
✨ Particle backgrounds (stars, snow, bubbles, fireflies, network, emoji) powered by tsParticles
🎆 Real fireworks show for New Year’s Eve and celebrations
⚡ Smart loading: no script is loaded on pages that do not use any effect
🖤 Grayscale mode for solemn occasions or national mourning
⏳ Animated preloaders to enrich user experience
Not just an effect plugin — this is an FX Engine for WordPress.
This plugin is part of the Init Plugin Suite — a collection of minimalist, fast, and developer-focused tools for WordPress.
GitHub repository: https://github.com/brokensmile2103/init-fx-engine
Highlights:
– Native Block Editor blocks: FX Trigger and FX Ambient Section — with live preview in the editor
– Interactive visual effects: Firework, Emoji Rain, Heart Rain, Cannon Blast, Starlight, Celebration Burst, Halloween Burst, Lucky Money, Blossom Rain, Fireworks Show, Snow Burst, Lantern Rise
– Seasonal Effects with a built-in holiday calendar (Halloween, Christmas, New Year, Tết, Valentine, Mid-Autumn), custom schedule or always-on mode
– Particle backgrounds: Network links, Twinkling stars, Gentle snow, Rising bubbles, Fireflies, Floating emoji
– Preloader (loading screen) with 6 styles: Dot Dot Dot, Bar, Logo, Flower, Spinner, Emoji
– Supports gradient or solid background for preloader
– Auto-fetch favicon for logo-based animation
– Snowfall with date scheduler (auto/custom), 4 snow styles, custom color, wind, battery saver mode and small-screen option
– Grayscale mode (manual or scheduled)
– Keywords to trigger effects inside comments or post content
– Real-time preview of effects in settings page
– Lightweight, extensible, and multilingual-ready
Smart Loading
Since 2.0.2 the plugin only loads what the current page needs:
- canvas-confetti + fx-engine.js: only when at least one keyword effect is configured, on pages that contain an
[initfxen-fx]shortcode or an FX Trigger block, or when the seasonal greeting effect has to play - fx-inline.js (inline formatting and spoilers, no dependency): only when Inline Formatting is enabled
- tsParticles + fx-ambient.js: only on pages with an
[initfxen-fx-ambient]shortcode or an FX Ambient Section block, and each background starts only when it scrolls near the viewport - fireworks-js: lazy-loaded the first time a Fireworks Show actually runs
- Snowfall, Seasonal Effects, Preloader, Grayscale: only when enabled and scheduled for today
On every other page a tiny inline stub keeps runEffect() and FXEngine.trigger() available: the first call loads canvas-confetti and fx-engine.js, then plays the effect. Themes and plugins that fire effects from JavaScript (for example Init User Engine on check-in streaks, rewards and level-ups) work without any setup and without loading the engine on every page.
To load the engine up front on every page instead, use:
add_filter( 'init_plugin_suite_fx_engine_load_engine', '__return_true' );
To remove the stub, use:
add_filter( 'init_plugin_suite_fx_engine_lazy_stub', '__return_false' );<h3>Block Editor (Gutenberg)</h3>
Two native blocks are available under their own Init FX Engine category in the block inserter:
- FX Trigger — equivalent to
[initfxen-fx]. A link or button that fires a visual effect (fireworks, emoji rain, etc.) on click, on hover, when scrolled into view, or immediately on page load - FX Ambient Section — a section with an animated particle background. Put any blocks inside (headings, buttons, images…). Choose a preset, color, amount, speed and hover/click interactions; the background is previewed live in the editor. Supports wide/full alignment, background color/gradient, text color, padding and minimum height
FX Trigger shares the exact same rendering code as its shortcode, so switching between the Block Editor and shortcode never changes the output. FX Ambient Section shares its particle configuration with [initfxen-fx-ambient].
Note: this plugin does not include Abilities API support. It has no data to read or write — everything it does is a purely visual, client-side effect — so there is nothing meaningful for an AI agent or automation tool to query here.
Snowfall
Go to Settings Init FX Engine Snowfall Effect. Snowfall runs on its own lightweight canvas renderer (no library):
- Snow style: Classic round (default — solid round flakes with random size and opacity for depth, just like earlier versions), Soft glow, Crystal snowflakes, or Classic + crystal
- Snow color: white by default; a light blue or gray keeps snow visible on light backgrounds
- Schedule: automatic (Dec 20 – Dec 31) or custom dates, optionally homepage only
- Amount, size, fall speed, opacity
- Wind: gentle swaying and gusts; when off, snow drifts down at slightly random angles like before
- Performance: Smooth (60 fps) or Battery saver (30 fps)
- Small screens: optionally hide snowfall below 768px
- The Preview button plays the snow over a night-sky backdrop right in the settings page
Performance: pre-rendered sprites, frame-rate independent motion, fewer flakes on small screens, no canvas reallocation when the mobile address bar shows or hides, stops when the tab is hidden, starts after the page has loaded and respects “reduce motion”.
Seasonal Effects
Go to Settings Init FX Engine Seasonal Effects and tick Enable seasonal effects on site.
- Theme: pick a holiday, or leave it on Auto to follow the holiday calendar
- Built-in holiday calendar: Halloween (Oct 24–31), Christmas (Dec 20–26), New Year (Dec 30 – Jan 2), Tết (one week before Lunar New Year’s Day – the 7th day of the new year), Valentine (Feb 10–14), Mid-Autumn (one week before the 15th day of the 8th lunar month – the 16th)
- Custom schedule or Always on (handy for testing on localhost)
- Hand-drawn scenes: crystal snowflakes, blossoms, petals, lucky-money envelopes, lanterns, hearts, bats, ghosts, glitter and confetti — drawn once into sprites, then animated on a single canvas
- Decorations: Christmas and New Year string lights, Tết lanterns, Mid-Autumn full moon, Halloween spider webs with a dangling spider (placed below the admin bar when you are logged in)
- Interactive: a burst of themed particles wherever visitors click or tap
- Custom emojis: replace the hand-drawn particles with your own emojis (up to 12)
- Greeting effect: plays once per browser session (e.g. a fireworks show on New Year)
- The Preview button plays the scene right in the settings page
Performance: every shape is pre-rendered once, the scene starts only after the page has finished loading, pauses when the tab is hidden, uses fewer particles on small screens, caps the device pixel ratio at 2 and respects the visitor’s “reduce motion” setting. The FX engine is not loaded at all when the greeting effect is turned off.
Developers can customize themes and dates with the init_plugin_suite_fx_engine_seasonal_themes, init_plugin_suite_fx_engine_seasonal_window, init_plugin_suite_fx_engine_lunar_dates and init_plugin_suite_fx_engine_seasonal_config filters. Themes added through the filter are rendered with their emoji list.
Particle Backgrounds
Use the FX Ambient Section block, or the shortcode inside any element that has position: relative:
[initfxen-fx-ambient ambient="stars"]
Attributes:
ambient— preset:links(default, network with lines),stars,snow,bubbles,fireflies,emoji. Any other value falls back tolinks, so older shortcodes keep workingcolor— particle color (default depends on the preset)amount— number of particles per 1000×800 px area (default depends on the preset)speed— movement speed (default depends on the preset)emoji— comma-separated emojis for theemojipresetlines—true/false, connecting lines for thelinkspresethover—repulse,grab,bubbleornoneclick—push,removeornone(only reacts to clicks inside the parent element, links and buttons are ignored)container_style/container_class— position the particle layer yourself
The settings page includes a shortcode generator with a live preview.
License
This plugin is licensed under the GPLv2 or later.
You are free to use, modify, and distribute it under the same license.
Credits
This plugin bundles the following open-source libraries (all GPL-compatible):
- canvas-confetti 1.9.4 — ISC License, Copyright (c) 2020 Kiril Vatev — https://github.com/catdad/canvas-confetti — file:
assets/js/canvas-confetti.min.js(minified fromdist/confetti.browser.js) - fireworks-js 2.10.8 — MIT License, Copyright (c) 2021-2023 Vitalij Ryndin — https://github.com/crashmax-dev/fireworks-js — file:
assets/js/fireworks.min.js - tsParticles 4.6.0 (slim bundle) — MIT License, Copyright (c) 2020 Matteo Bruni — https://github.com/tsparticles/tsparticles — file:
assets/js/tsparticles.slim.bundle.min.js(unmodified@tsparticles/slimbundle from npm)
The full, human-readable source code of these libraries is available at the repositories above and on npm (canvas-confetti, fireworks-js, @tsparticles/slim).
Previous versions also bundled particles.js 2.0.0 (MIT, Vincent Garreau); it was removed in 2.0.2.
All other code (snowfall and seasonal renderers, effects, inline formatting) is original work of this plugin, licensed under GPLv2 or later.