Skip to Content

Spinner Wheel

A prize/discount wheel with configurable segments. The classic “spin to win” pattern for gamified discount offers.

Spinner Wheel Insert image: A Spinner Wheel component on the canvas showing a colorful segmented wheel with labels like “10% Off”, “20% Off”, “Free Trial” and a pointer indicator at the top

Properties

PropertyDescription
spinnerSegmentsJSON array of segments (label, value, color).
spinnerTargetSegmentIndex of the segment the wheel lands on.
spinnerSpinDurationSpin animation duration in milliseconds.
spinnerNumberOfSpinsNumber of full rotations before landing.
spinnerStartVariableIdVariable ID that triggers the spin (set to true to start).
spinnerResultVariableIdVariable ID that receives the winning segment’s value.
spinnerCompletionActionsClick actions to execute when the spin completes.
spinnerModetrigger (spin once on trigger) or continuous (keep spinning).
spinnerPointerColorColor of the pointer indicator.
spinnerStrokeColorColor of segment borders.
spinnerStrokeWidthWidth of segment borders.
spinnerCenterRadiusRadius of the center circle.
spinnerCenterColorColor of the center circle.

How It Works

  1. Configure segments with labels, values, and colors.
  2. Set spinnerTargetSegment to the index of the segment you want the wheel to land on (the outcome is predetermined).
  3. Trigger the spin by setting spinnerStartVariableId to true (e.g., via a button’s Set Variable action).
  4. When the spin completes, the winning segment’s value is written to spinnerResultVariableId and spinnerCompletionActions execute.

The result is predetermined by spinnerTargetSegment — the animation is for engagement, not randomness. This ensures you always deliver the intended offer.

Element Variable

  • element.{componentId}.value — the winning segment’s value after the spin completes.
Last updated on