DEV Community

Jason
Jason

Posted on

Willy Wonka contract effect using CSS?

I want a long paragraph of text to progressively reduce its font size, like the contract in Willy Wonka (see below).

Criteria could be character count or line count. I think either would work fine.

Is there a CSS solution? First thought was line-clamp or something like that.

Thought I'd try my luck here in hopes some adventurous souls were up.

Image description

Top comments (0)