本文分享一款很酷的HTML5電子書翻頁動畫特效,這款HTML5翻頁動畫可以用鼠標拖動頁面來模擬手動翻頁的效果,也可以點擊書頁的邊框來快速翻頁。之前也分享過一款HTML5 3D書本翻頁特效,3D視覺效果更加強烈。
XML/HTML Code復(fù)制內(nèi)容到剪貼板
- <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>