Ana Sayfa / Kod ve Scriptler / Folio3D - JavaScript 3D Flipbook for PDF and Image

Folio3D - JavaScript 3D Flipbook for PDF and Image

Düz JavaScript ile PDF ve görseller için gerçekçi 3D flipbook: WebGL sayfa kıvrımı, arama, içindekiler, okuma modu ve koyu tema.

  • Yayın tarihi13 Ekim 2026
  • Paket içeriği.css, .html, .json, package.json, JavaScript .js
  • Son güncelleme13 Ekim 2026
  • Canlı demoVar
Folio3D - JavaScript 3D Flipbook for PDF and Image

Overview

Folio3D: 3D Flipbook for PDF & Images

Turn any PDF or set of images into a book people enjoy reading. Folio3D renders a realistic page curl with lighting, keeps your PDF text searchable and links clickable, and looks modern in light and dark themes. It is written in plain JavaScript, with no jQuery and no frameworks, and works on any website.

01-webgl-page-curl.jpg

Why Folio3D

  • Realistic page curl. A custom WebGL shader bends the page with real lighting and shadows. You can drag a page by its corner.
  • ###strong/strong### Realistic 3D (WebGL), Light 3D (CSS) for older devices, and Swipe for phones. When WebGL is unavailable, the viewer falls back automatically.
  • PDF text works. Full-text search highlights matches on the page, the table of contents comes from the PDF outline, and PDF links stay clickable.
  • Modern interface. A floating glass toolbar, light, dark and automatic themes, and an accent color of your choice.
  • Made for reading. Reader mode, bookmarks and “continue where you left off”.
  • Fast. Pages load lazily, so 300-page catalogs open in seconds. Sharp on retina screens and when zoomed.
  • Zero dependencies for image books. pdf.js loads only when you show a PDF.

Features

What you get

  • folio3d.js (UMD), folio3d.esm.js, minified versions and CSS
  • Readable source code: ES modules with JSDoc comments, no obfuscation
  • Demos: showcase, no-code embed, theme builder
  • Detailed HTML documentation

Features

  • PDF (URL or file data) or images (JPG, PNG, WebP, SVG)
  • Two-page spread or single page, chosen automatically by screen size
  • Single cover page and centered closed book
  • Drag, swipe, click, keyboard and mouse wheel navigation
  • Zoom with buttons, Ctrl + wheel and pinch, with pan; pages re-render sharp after zooming###li/li###
  • Reader mode: page text in a comfortable column with adjustable font size
  • Fullscreen, including a fallback for iPhone
  • Lightbox from any link, button or cover
  • Hotspots: video (YouTube, Vimeo, MP4), iframe, external link, go-to-page and custom HTML
  • Page captions and a reading progress bar
  • Share panel (copy link, social networks) and deep links to pages (#page=12)
  • Download and print the current page
  • Autoplay with loop
  • Page-turn sound, synthesized in the browser (no audio files) or your own file
  • Right-to-left books
  • Translations: English and Russian included, every string can be overridden
  • Accessible: keyboard operable, ARIA labels, focus states, respects “reduced motion”###li/li###
  • Simple API with events: pagechange, zoom, ready and more
  • No-code embed with HTML attributes
03-search.jpg

Using WordPress?

Folio3D is also available as a separate WordPress plugin from Codestan, with an admin UI, a Flipbook block, shortcodes and a bookshelf.

Easy to use

Or without writing any JavaScript:

09-mobile.jpg

Requirements

Requirements

  • Any website, with no server-side requirements for the JavaScript library
  • Current Chrome, Edge, Firefox and Safari (desktop, iOS 15+, Android)

Credits

  • pdf.js by Mozilla, Apache License 2.0, loaded at runtime to render PDF files
  • Sample content in the demo was created for this item. Icons and the page-turn sound are original.

Changelog