03.15 · Page Transitions
Page Curl
The page peels back from its corner like paper. Best for digital magazines.
Click it
Click Work or About at the top of the box, or press Show me.
The corner travels along the dashed path, and the fold sits halfway between it and where it lies flat; past the fold the page is flipped over. Click Work or About, or press Show me.
Switches at once simply changes page; Turns like paper folds a page over by its corner to change it. Click Work or About, or press Show me.
Try it
Change a setting, then try it again or press Show me.
Turn speed
How long one page takes to turn over.
Which way it turns
Back lays an earlier page down over the one you are on.
Paper shading
Shading makes the folded paper look curved.
Copy the prompt
Paste it into an AI assistant such as ChatGPT, Claude or Cursor to build this in your own project.
Add a page curl to [the pages you want to turn, such as a magazine]. A forward turn lifts the bottom corner of the current page and turns it over to the left like paper, so the page underneath shows. A turn back runs the same movement in reverse and lays a page down over the current one. Draw the folded part as the back of the sheet, lying over the page along a straight fold that moves with the corner. Paper shading darkens the fold and casts a shadow on the page below. Work out the fold from the corner on every frame, timing the turn by elapsed time. If the visitor has reduced motion turned on, fade between the pages instead. Match the settings listed below.
Your settings
Replace the words in brackets with your own element. Your settings are added at the end.
Free and open source. If this helped, a star on GitHub helps other people find it.
Star on GitHubWhat it is
The full explanation is in README.md.