3d-pro-flipbook 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist/pro-flipbook.es.js +11685 -0
- package/dist/pro-flipbook.umd.js +159 -0
- package/dist/style.css +1 -0
- package/package.json +45 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.pfb-container{position:relative;width:100%;height:100%;background-color:#333;font-family:sans-serif;display:flex;flex-direction:column;align-items:center;overflow:hidden}.pfb-toolbar{background:rgba(0,0,0,.85);min-width:350px;padding:10px 20px;margin-top:10px;border-radius:30px;display:flex;justify-content:center;align-items:center;gap:15px;z-index:100;box-shadow:0 4px 10px #0000004d}.pfb-btn{background:transparent;border:none;color:#ddd;font-size:18px;cursor:pointer;transition:transform .2s,color .2s}.pfb-btn:hover{color:#fff;transform:scale(1.1)}.pfb-btn:active{transform:scale(.95)}.pfb-page-control{display:flex;align-items:center;color:#fff;font-size:14px;font-family:monospace}.pfb-page-input{background:transparent;border:none;border-bottom:1px solid #777;color:#fff;width:50px;text-align:center;font-size:14px;margin-right:5px;outline:none}.pfb-page-input:focus{border-bottom:1px solid #fff}.pfb-book-wrapper{flex-grow:1;width:100%;display:flex;justify-content:center;align-items:center;padding:20px;box-sizing:border-box;overflow:hidden;position:relative}.pfb-book{position:relative;box-shadow:0 0 20px #00000080;transition:transform .6s cubic-bezier(.25,1,.5,1)}.pfb-page{background-color:#343434;overflow:hidden;position:absolute;top:0;left:0;width:100%;height:100%;margin:0;padding:0}.pfb-branding{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;opacity:1;z-index:1;pointer-events:none}.pfb-brand-logo{font-size:40px;color:#e0e0e0;margin-bottom:10px}.pfb-brand-text{font-size:14px;font-weight:700;color:#d0d0d0;text-transform:uppercase;letter-spacing:2px}.pfb-page canvas{position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;display:block}.stf__wrapper{overflow:hidden!important;box-shadow:0 0 20px #00000080}.stf__block{overflow:hidden!important}.pfb-loader{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#333;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#fff;z-index:9999;transition:opacity .5s}.pfb-spinner{font-size:40px;margin-bottom:15px;animation:pfb-spin 1s infinite linear;width:40px;height:40px;border:3px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff}@keyframes pfb-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "3d-pro-flipbook",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A professional 3D PDF Flipbook library for the web.",
|
|
5
|
+
"author": "Sanatan Nayak",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
|
|
8
|
+
"// TYPE": "Using module type is standard for modern libs, but optional here",
|
|
9
|
+
"type": "module",
|
|
10
|
+
|
|
11
|
+
"// ENTRY POINTS": "These tell browsers and bundlers which file to use",
|
|
12
|
+
"main": "./dist/pro-flipbook.umd.js",
|
|
13
|
+
"module": "./dist/pro-flipbook.es.js",
|
|
14
|
+
"style": "./dist/style.css",
|
|
15
|
+
|
|
16
|
+
"// EXPORTS": "This is the modern way to handle imports",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/pro-flipbook.es.js",
|
|
20
|
+
"require": "./dist/pro-flipbook.umd.js"
|
|
21
|
+
},
|
|
22
|
+
"./style.css": "./dist/style.css"
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
"// FILES": "Only upload the dist folder to NPM (keeps download small)",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist"
|
|
28
|
+
],
|
|
29
|
+
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "vite",
|
|
32
|
+
"build": "vite build"
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"page-flip": "^2.0.7",
|
|
37
|
+
"pdfjs-dist": "^2.16.105"
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"vite": "^4.0.0"
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
"keywords": ["flipbook", "pdf", "3d", "viewer", "library"]
|
|
45
|
+
}
|