Skip to content

v1.3.1

Latest

Choose a tag to compare

@moghadam-pro moghadam-pro released this 13 Jun 17:27
· 4 commits to main since this release

What's Changed

Bug Fixes

  • Fixed: Cursor dot & Influence ring had no effect
    wp_localize_script serialises PHP booleans as "1" or "" (empty string),
    not true JS true/false. The JS check !== undefined was always passing.
    Fixed by casting to (int) in PHP and comparing with == 1 in JS.

  • Fixed: Preview didn't match the live site
    The admin preview was computing pixel colors directly from RGB multiplier sliders,
    ignoring the pixel base color entirely. Both the preview canvas and the frontend
    script now use the same color formula.

New Features

  • Background color picker — choose the canvas fill color (default #000000)
  • Pixel base color picker — choose the base tint of pixel blocks (default #ffffff);
    RGB multiplier sliders now modulate this color instead of white
  • Style Debug Log — a live log panel below the preview detects common conflicts:
    • overflow: hidden on <body> or <html> (clips the fixed canvas)
    • Opaque background set on <body> (covers the canvas)
    • Non-negative z-index value (canvas may appear above content)
      Runs automatically on page load and on every settings change

Improvements

  • Number inputs widened from 58px to 74px — full value now visible
  • Color pickers wired to WP Color Picker API with live preview update on change
  • Frontend JS now explicitly uses parseInt / parseFloat on all config values
    to guard against string coercion from wp_localize_script

Files

  • background-motion-v1.3.1.zip — ready to install via WordPress plugin uploader