New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@strata-packages/flipbook

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strata-packages/flipbook

PDF and HTML flipbook viewer with page-flip animation. Works standalone or with Strata CSS.

latest
Source
npmnpm
Version
1.5.3
Version published
Weekly downloads
11
-21.43%
Maintainers
1
Weekly downloads
 
Created
Source

@strata-packages/flipbook

CSS-driven 3D page-flip flipbook for Strata CSS. Renders HTML pages or PDFs with an organic page-flip animation. Drag to flip, sounds, 6 presets, responsive.

npm license

Installation

npm install @strata-packages/flipbook

Quick Start

<link rel="stylesheet" href="flipbook.css">
<script src="flipbook.js"></script>

<!-- Zero-config: existing children become pages -->
<div id="book">
  <div>Page 1</div>
  <div>Page 2</div>
</div>
<script>StrataFlipbook('#book')</script>

Or pass content explicitly:

<div id="book"></div>
<script>
  StrataFlipbook('#book', {
    content:    '.my-pages',   // selector, NodeList, or Element[]
    preset:     'magazine',
    pagination: 'dots',
    drag:       true,
    exportable: true,
    sound:      { enabled: true },
  })
</script>

PDF Viewer

<script>pdfjsLib.GlobalWorkerOptions.workerSrc = '...'</script>
<div id="book"></div>
<script>
  StrataFlipbook('#book', { source: 'pdf', content: '/doc.pdf' })
</script>

Presets

notebook (default) · magazine · paperback · hardcover · comic · minimal

Pagination modes

controls (default) · dots · input · thumbnails · none · or array e.g. ['controls', 'dots']

Peer dependencies

PackageWhen needed
pdfjs-distsource: 'pdf'
html2canvasExport HTML source to PDF
pdf-libAny PDF export

All MIT or Apache-2.0. None inject inline styles or JS.

See CLAUDE.md for full API reference.

Documentation

Full API reference, options and live examples: https://strata-css-docs-site.vercel.app/packages/flipbook

@strata-packages/flipbook is part of Strata CSS — a JIT CSS framework that pairs Bootstrap-style component classes with Tailwind-style on-demand generation, cascade layers instead of !important, variants (hover:, group-hover:, peer-checked:), arbitrary values and three built-in themes.

Other Strata packages

PackageWhat it does
@strata-packages/chartThree.js chart component. Works standalone or with Strata CSS.
@strata-packages/cursorfxModular cursor effects — one shared engine, ten opt-in presets. Works standalone or with Strata CSS.
@strata-packages/formsInteractive form controls for Strata CSS — custom select with every variant developers need.
@strata-packages/modalLightweight modal component. Works standalone or with Strata CSS.
@strata-packages/offcanvasLightweight offcanvas drawer component. Works standalone or with Strata CSS.
@strata-packages/pickerDate, time, and datetime picker for Strata CSS. Works standalone or with Strata.
@strata-packages/shopmapLightweight, theme-aware map component with terrain, hypsometric tinting, and procedural hillshading. Zero API keys. Free for commercial use.
@strata-packages/skeleton-loaderLightweight skeleton loader plugin. Works standalone or with Strata CSS.

License

MIT © Aftab Ibrahim Kazi

Keywords

flipbook

FAQs

Package last updated on 01 Sep 2026

Related posts