An interactive educational widget designed to help students learn about numerical comparisons through visual block manipulation and comparison.
This widget provides an intuitive, hands-on way to understand number relationships by allowing students to:
- Build and compare stacks of blocks
- Draw comparison lines to show relationships
- See animated visual feedback of their comparisons
- Interact through touch or mouse input
- 🎯 Interactive block stacks with drag-and-drop
- 🎨 Smooth, physics-based animations
- 📱 Touch and mouse support
- 🔄 Multiple interaction modes
- 📊 Visual comparison system
- 🎮 Intuitive controls
- ⚛️ React + TypeScript
- ⚡ Vite
- 🎭 Framer Motion
- 🎨 TailwindCSS
- Node.js (v18 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/block-comparison-widget.git
cd block-comparison-widget
- Install dependencies:
npm install
# or
yarn
npm run dev
# or
yarn dev
The application will be available at http://localhost:5173
-
Add/Remove Blocks
- Click the stack to add blocks
- Drag blocks away to remove them
- Use the control panel for precise values
-
Compare Blocks
- Switch to compare mode
- Draw lines between stacks
- See immediate visual feedback
-
View Results
- Trigger the comparison animation
- See the relationship between stacks
- Reset and try different combinations