Menu
Advertisement
Advertisement
Advertisement

Markdown Cards Part 2: Scribbles & Flips

Markdown Cards Part 2: Scribbles & Flips

In Part 1, we introduced basic playing cards. Now, let’s get messy! We’re adding “scribble” styles, advanced flip animations, and the ability to put markdown on both sides of the card.

Advertisement Advertisement

1. The Scribble Style

Perfect for that “hand-drawn” or “whiteboard” aesthetic. We use irregular border radii to simulate a sketch.

Neat Sketch

Clean lines, subtle wobble.

The Back

Grid pattern for precision.

Rough Sketch

Thicker borders, more irregular.

The Back

Dot pattern for guidance.

Messy Sketch

Dashed lines, chaotic energy.

The Back

Diagonal stripes.

Advertisement Advertisement

2. Advanced Flips

Why stick to horizontal flips? Let’s mix it up with vertical and diagonal rotations.

Advertisement Advertisement

Vertical Flip

Hover me!

Flipped!

Rotated around the X-axis.

Advertisement Advertisement

Diagonal Flip

Hover me!

Whoa!

Rotated on a 3D vector.

Advertisement Advertisement

3. Flashcards: Markdown on Both Sides

This is where it gets useful. You can put full markdown content on both the front and back. Great for Q&A or “Reveal” cards.

Question 1

What is the capital of France?

(Hover to reveal)

Answer

Paris

Paris

Code Challenge

How do you center a div?

div {
  display: grid;
  place-items: center;
}
Advertisement Advertisement

Using your uploaded images with the scribble effect.

Card 1

Design Deck

Minimalist style.

Card 2

Joker

The wild card.

Advertisement Advertisement

5. Diagrams with Scribbles

Step 1

Write MDX

Step 2

Import Components

Step 3

Enjoy Result

Advertisement Advertisement

How to Use

Import ScribbleCard and use named slots for front and back.

import ScribbleCard from '../components/ScribbleCard.astro';

<ScribbleCard flipDirection="vertical" scribbleStyle="rough">
  <div slot="front">
    # Front Content
  </div>
  <div slot="back">
    # Back Content
  </div>
</ScribbleCard>

Enjoy building your hand-drawn decks!

Advertisement
Sponsored Content

finding (solutions) x

A public notebook and learning hub.