---
title: "Text Pressure"
canonical_url: "https://framerhub.io/components/text-pressure"
last_updated: "2026-11-09T16:24:46.398Z"
---

## Interactive Variable Font Typography

TextPressure changes the weight, width and slant of each letter as the cursor gets close. It works with any variable font that has those axes.

## Features

**Reacts to the cursor.** Each character follows the mouse or touch position, and letters nearest the cursor change the most.

**Variable font axes.** Weight (wght), width (wdth) and italic (ital), each switched on or off on its own.

**Opacity and stroke.** Letters can fade with distance from the cursor, and an optional stroke adds a colored outline.

**Layout.** Flex layout spreads the letters across the width. Scale to Fit fills the container height.

## Use Cases

**Hero sections.** A headline that reacts when visitors move the mouse.

**Portfolio headers.** Type that shows off your design skills before anyone scrolls.

**Landing pages.** Text visitors want to play with.

**Brand sites.** Your own variable font, used as the interaction.

![Text Pressure Preview](/framerhub/img/components/control/text-pressure.jpg)

## How to Use

### Customization

Configure your text and font settings, then enable the effects you want.

**Text Settings**

- Text: The display text
- Font Family: Variable font family name
- Font URL: URL to your variable font file (.woff2)
- Min Font Size: Minimum font size in pixels

**Appearance**

- Text Color: Main text color
- Stroke Color: Color for stroke effect (when enabled)

**Effects**

- Width Variation: Animate font width axis
- Weight Variation: Animate font weight axis
- Italic Variation: Animate italic axis
- Alpha Variation: Animate opacity based on distance
- Flex Layout: Use flexbox for justified spacing
- Stroke Effect: Add colored outline behind text
- Scale to Fit: Scale text to fill container height

### Quick Tips

**Use a variable font.** The component needs a variable font with wght, wdth and ital axes. The default, Compressa VF, works, and so do Google variable fonts.

**Dark backgrounds.** Light text on a dark background shows the effect most clearly. Try white text with a subtle stroke color.

**Container size.** The text sizes itself to the container width. Turn on Scale to Fit to fill the height as well.

**Long text.** The animation runs on requestAnimationFrame. Long text with many characters can slow it down on phones.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
