Reveal

Description

Creates click-to-show content functionality with optional text input requirements. Perfect for answers, solutions, hints, or any content that should be revealed on demand. Supports both simple reveal and active reveal with user input requirements.

Usage

Wrap content in a container with class .reveal or .active-reveal. The system automatically creates reveal buttons and handles the show/hide functionality.

Available Options

Examples

Basic Reveal

This content is hidden until the reveal button is clicked.

Perfect for answers, solutions, or additional information.

Custom Button Text

The answer is: 42

This is the answer to the ultimate question of life, the universe, and everything.

Active Reveal with Text Input

This content requires the user to type at least 10 characters before the reveal button becomes active.

Great for encouraging reflection before showing answers.

Active Reveal with Custom Rows

This hint will only be revealed after you write at least 20 characters.

The textarea has been customized to 3 rows instead of the default 5.

Reveal with Complex Content

Detailed Solution

Here's a step-by-step breakdown:

  1. First, identify the problem
  2. Next, gather relevant information
  3. Then, analyze the data
  4. Finally, implement the solution

Note: This approach works best for complex problems.

Multiple Reveals

This is the first hint.

This is the second hint.

This is the final answer.

Reveal with Interactive Content

  1. What is the capital of Canada?

    @ Ottawa is the capital city of Canada.

    • *Ottawa
    • Toronto
    • Vancouver
    • Montreal

Notes