Angled cover

Turns a flat screenshot into a 3D “page on a table” with CSS.

Usage

In a project, set cover.screenshot and it’s used automatically.

Ranade Lab website at desktop and mobile sizes
<AngledCover src={screenshot} alt="Homepage for Example Co" />
<AngledCover src={screenshot} alt="…" tilt={45} turn={25} />

Props

PropTypeDefaultNotes
srcimage import or URL—Flat screenshot, ideally 1440px+ wide
altstring—
tiltnumber (deg)52How far it leans back
turnnumber (deg)32Rotation on the table