Tutorial4 min read

How to Embed Messaging Mockups on Your Website

Learn how to embed interactive messaging mockups directly on your website using Mock DM's iframe embed feature. Perfect for product demos, testimonials, and marketing pages.

How to Embed Messaging Mockups on Your Website

Embedding messaging mockups on your website lets visitors see your product in action without leaving the page. Mock DM's embed feature creates interactive, animated conversations that play directly in your site—perfect for product demos, testimonials, case studies, and landing pages.

Embedding is available on Pro plans (Monthly or Lifetime). Free users can create and export images, but website embeds unlock with a subscription.

Why embed instead of exporting images?

How to create an embed

  1. Build your mockup: Create your conversation in Mock DM—select platform, add messages, set timestamps, and customize appearance.
  2. Click "Embed in website": Find this button in the export options (Pro feature).
  3. Configure settings:
    • Autoplay: Toggle to start animation automatically when the page loads
    • Playback speed: Adjust from 0.25x to 3x to control animation timing
  4. Copy the iframe code: Mock DM generates a ready-to-use iframe snippet with your settings
  5. Paste into your site: Add the iframe code to your HTML where you want the mockup to appear

Embed configuration options

Autoplay

Enable autoplay to start the animation immediately when the iframe loads. This works well for hero sections and landing pages where you want immediate visual impact.

Playback speed

Control how fast the conversation animates:

Query parameters

You can also control these settings via URL parameters:

Best practices for embedded mockups

Placement

Timing

Design

Example use cases

Product demos

Embed a conversation showing your app's key features in action. Use autoplay and moderate speed (1x–1.5x) so visitors can follow along.

Social proof

Display realistic customer conversations or support interactions. Keep these short and impactful—5–10 messages that tell a clear story.

Marketing pages

Use animated mockups in hero sections to immediately show what your product does. Autoplay works well here to grab attention.

Documentation

Embed mockups in help docs to show users exactly what they'll see in your app. Slower speeds (0.5x–0.75x) help users read along.

Technical details

The embed uses an iframe that loads your mockup from Mock DM's servers. The iframe is:

Troubleshooting

Embed not showing?

Animation not playing?

Size issues?

Ready to embed? Create a mockup and get your embed code in Mock DM. Upgrade to Pro to unlock website embedding along with watermark-free exports, unlimited messages, and access to all platforms.

Start Creating Your Mockups

Ready to put what you learned into practice? Create professional messaging mockups for all major platforms with Mock DM.