![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@paxperscientiam/bookblock
Advanced tools
A jQuery plugin that will create a booklet-like component that let's you navigate through its items by flipping the pages.
Aiming to turn codrops awesome work into an easy to use package! Really, their work never ceases to amaze me. Check them out here: https://tympanus.net/codrops/
A jQuery plugin that will create a booklet-like component that let's you navigate through its items by flipping the pages.
Stay tuned for new demo ...
While I've made some improvements, they're not at the same quality level.
License: http://tympanus.net/codrops/licensing/
git clone https://github.com/paxperscientiam/BookBlock
cd BookBlock
pnpm i && pnpm run start
With the above, fuse-box
should start a server.
If you're not concerned with conflicts, then you could simply use prebuilt files dist/*-bookblock.js
and dist/*-shims.js
(which contains the aforementioned dependencies).
Alternatively, you could use dist/*-bookblock.js
, src/js/jquerypp.custom.js
, src/js/modernizr.custom.js
, and include your own copy of jquery
.
It'll depend on your build tool somewhat, but here is what I do with FuseBox
import "@paxperscientiam/bookblock"
Again, you can either use the prebuild *-shims.js
, or import jquerypp.custom.js
and modernizr.custom.js
.
// tslint:disable-next-line
interface BookBlockPluginEffectsSettings {
// Add shadow around book
bordershadow: boolean
// Additional paper effect
paper: boolean
}
// tslint:disable-next-line
interface BookBlockPluginSettings {
// does nothing
_dummy: boolean // false
// autoplay. If true it overwrites the circular option to true
autoplay?: boolean // false
// if we should show the first item after reaching the end
circular?: boolean // false
// easing for the flip transition
easing?: string // "ease-in-out"
// the space around the image in percent
gutter?: number // 0
// History API
history?: boolean // false
// time (ms) between page switch, if autoplay is true
interval?: number // 3000
// ltr (left to right) or rtl (right to left)
ltr?: boolean // true
// if we want to specify a selector that triggers the next() function. example: ´#bb-nav-next´
nextEl?: string // "#bb-nav-next"
// vertical or horizontal flip
orientation?: string
// if we want to specify a selector that triggers the prev() function
prevEl?: string // "#bb-nav-prev"
shadowFlip?: number
// opacity value for the "shadow" on both sides (when the flipping page is over it)
// value : 0.1 - 1
shadowSides?: number
// if set to true, both the flipping page and the sides will have an overlay to simulate shadow
shadows?: boolean
// speed for the flip transition in ms
speed?: number
// page to start on (1-based)
startPage?: number
// graphical flourishes
effects: BookBlockPluginEffectsSettings
// callback after the flip transition
// old is the index of the previous item
// page is the current item´s index
// isLimit is true if the current page is the last one (or the first one)
onEndFlip?: (a, b, c: boolean) => boolean
// callback before the flip transition
// page is the current item´s index
onBeforeFlip?: (a) => boolean
}
<div>
<h3>Illustrations by <a href="http://dribbble.com/kevinhowdeshell">Kevin Howdeshell</a></h3>
<div id="bb-bookblock" class="bb-bookblock">
<div class="bb-item">
<a href="#"><img src="images/demo1/1.jpg" alt="image01"/></a>
</div>
<div class="bb-item">
<a href="#"><img src="images/demo1/2.jpg" alt="image02"/></a>
</div>
</div>
<nav class="bb-nav-container">
<a id="bb-nav-first" href="#" class="bb-nav bb-icon bb-icon-first">
First page</a>
<a id="bb-nav-prev" href="#" class="bb-nav bb-icon bb-icon-arrow-left">Previous</a>
<a id="bb-nav-next" href="#" class="bb-nav bb-icon bb-icon-arrow-right">Next</a>
<a id="bb-nav-last" href="#" class="bb-nav bb-icon bb-icon-last">Last page</a>
</nav>
</div>
<script>
$(function () {
const bookBlockOptions = {
circular: true
// etc
}
const sexy = $( "#bb-bookblock" ).bookBlock(bookBlockOptions)
});
</script>
Plugin now accepts the boolean option history
(default value is false
). Enabling this will add a queryField to the current URI and allow you to bookmark any page of your BookBlock book.
OK, so now the dist folder filenames are hashed. Please adjust your build process accordingly.
The production file dist/*-bookblock.js
is the BookBlock
code. The demo uses the file dist/*-shims.js
, which includes the necessary dependencies: src/modernizr.custom.js
, src/jquerypp.custom.js
, and jquery
.
FAQs
A jQuery plugin that will create a booklet-like component that let's you navigate through its items by flipping the pages.
We found that @paxperscientiam/bookblock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.