您现在的位置是:网站首页> 编程资料编程资料

很酷的HTML5电子书翻页动画特效css transform 翻页动画记录的实现HTML5 3D书本翻页动画的实现示例使用纯CSS实现书籍3D翻页效果的示例一个不错的html 打印代码支持翻页css实现点击滚动翻页的效果(无js)css3实现书本翻页效果的示例代码

2021-08-31 991人已围观

简介 这篇文章主要介绍了很酷的HTML5电子书翻页动画特效,这款HTML5翻页动画可以用鼠标拖动页面来模拟手动翻页的效果,也可以点击书页的边框来快速翻页,感兴趣的小伙伴们可以参考一下

本文分享一款很酷的HTML5电子书翻页动画特效,这款HTML5翻页动画可以用鼠标拖动页面来模拟手动翻页的效果,也可以点击书页的边框来快速翻页。之前也分享过一款HTML5 3D书本翻页特效,3D视觉效果更加强烈。

在线演示地址如下:

http://demo.jb51.net/js/2016/html5-book-page/

实现的代码:

XML/HTML Code复制内容到剪贴板
  1. <div id="shineflip">  
  2.       <div id="shineflip-pages">  
  3.           <canvas id="shineflip-canvas">canvas>  
  4.           <canvas id="shineflip-page-mid-canvas">canvas>  
  5.           <section class="page">  
  6.               <div><img src="images/0.jpg" width="475" height="482" />div>  
  7.               <span style="left:18px;"><img src="images/zh.png" height="482" />span>  
  8.           section>  
  9.           <section class="page" style="background:url(images/left_pk.jpg)">  
  10.               <div><img src="images/1.jpg" width="466" height="463" style="float:right;margin-top:9px;" />div>  
  11.           section>  
  12.           <section class="page">  
  13.               <div><img src="images/2.jpg" width="466" height="463" style="float:left;margin-top:9px;" />div>  
  14.           section>  
  15.           <section class="page">  
  16.               <div><img src="images/3.jpg" width="466" height="463" style="float:right;margin-top:9px;" />div>  
  17.           section>  
  18.           <section class="page">  
  19.               <div><img src="images/4.jpg" width="466" height="463" style="float:left;margin-top:9px;" />div>  
  20.           section>  
  21.           <section class="page">  
  22.               <div><img src="images/5.jpg" width="466" height="463" style="float:right;margin-top:9px;" />div>  
  23.           section>  
  24.           <section class="page" style="background:url(images/right_pk.jpg)">  
  25.               <div><img src="images/6.jpg" width="466" height="463" style="float:left;margin-top:9px;" />div>  
  26.           section>  
  27.           <section class="page">  
  28.               <div><img src="images/24.jpg" width="475" height="482" />div>  
  29.               <span style="right:18px;"><img src="images/zh.png" height="482" />span>  
  30.           section>  
  31.       div>  
  32.   div>  

CSS样式:

CSS Code复制内容到剪贴板
  1. body, h2, p {   
  2.  margin: 0;   
  3.  padding: 0;   
  4. }   
  5.   
  6. body {   
  7.  backgroundurl("../images/cover.jp

相关内容

-六神源码网