This article shares a cool HTML5 e-book page turning animation effect. This HTML5 page turning animation can use the mouse to drag the page to simulate the effect of manual page turning. You can also click on the border of the book page to quickly turn the page. I have also shared an HTML5 3D book page turning effect before, and the 3D visual effect is more intense.
The online demo address is as follows:
http://demo.jb51.net/js/2016/html5-book-page/
Implementation code:
XML/HTML CodeCopy content to clipboard
-
<div id="shineflip">
-
<div id="shineflip-pages">
-
<canvas id="shineflip-canvas">canvas>
-
<canvas id="shineflip-page-mid-canvas">canvas>
-
<section class="page">
-
<div><img src="images/0.jpg" width="475" height="482" />div>
-
<span style="left:18px;"><img src="images/zh.png" height="482" />span>
-
section>
-
<section class="page" style="background:url(images/left_pk.jpg)">
-
<div><img src="images/1.jpg" width="466" height="463" style="float:right;margin-top:9px;" />div>
-
section>
-
<section class="page">
-
<div><img src="images/2.jpg" width="466" height="463" style="float:left;margin-top:9px;" />div>
-
section>
-
<section class="page">
-
<div><img src="images/3.jpg" width="466" height="463" style="float:right;margin-top:9px;" />div>
-
section>
-
<section class="page">
-
<div><img src="images/4.jpg" width="466" height="463" style="float:left;margin-top:9px;" />div>
-
section>
-
<section class="page">
-
<div><img src="images/5.jpg" width="466" height="463" style="float:right;margin-top:9px;" />div>
-
section>
-
<section class="page" style="background:url(images/right_pk.jpg)">
-
<div><img src="images/6.jpg" width="466" height="463" style="float:left;margin-top:9px;" />div>
-
section>
-
<section class="page">
-
<div><img src="images/24.jpg" width="475" height="482" />div>
-
<span style="right:18px;"><img src="images/zh.png" height="482" />span>
-
section>
-
div>
-
div>
CSS样式:
The above is the entire content of this article, I hope you all like it.