Blocks
Mission Card

Mission Card (alonepro/mission-card)

The Mission Card block pairs a portrait photograph with a floating, high-contrast statistic badge overlaid in any corner. As visitors scroll the block into the viewport, the statistic triggers a count-up animation, highlighting years of service, funds raised, or lives touched.


Key Features

  • Corner Badge Overlay: Position the stat badge at bottom-left, bottom-right, top-left, or top-right.
  • Animated Number Counter: Configurable count-up animation that triggers on scroll enter.
  • Prefix & Suffix Support: Prepend symbols (e.g. $, ) or append suffixes (e.g. +, %, M, K).
  • Aspect Ratio Control: Supports portrait ratios such as 4/5 or 3/4 to align with neighboring text columns.
  • Card Icon Accent: Select an icon (e.g. award, heart, shield) to display inside the badge.

Inspector Settings

SettingTypeDefaultDescription
imageUrlStringMain featured photograph.
imageAspectRatioString"4/5"CSS container aspect ratio.
statNumberNumber15Target number for the count animation.
statPrefixString""Character(s) displayed before the number.
statSuffixString"+"Character(s) displayed after the number (e.g. +, %).
statLabelString"YEARS"Bold headline label beneath the counter.
statDescriptionString"Giving children a place to belong"Explanatory caption inside the badge.
enableCountAnimationToggletrueAnimate the number counting up from 0 on viewport entry.
countDurationNumber2000Duration of count-up animation in milliseconds.
showDividerToggletrueDisplay a subtle separator inside the badge.
badgePositionSelect"bottom-left"Corner placement: bottom-left, bottom-right, top-left, top-right.
iconTypeSelect"award"Lucide icon rendered alongside the statistic.
linkUrlString""Optional link wrapping the entire mission card.
enableScrollAnimationToggletrueViewport entrance animation for the card.