基于任何图像轻松创建拼图的jQuery插件:Image jigsaw

jopen 10年前

Image jigsaw 是一个能够将任何图片转换成拼图 jQuery 插件。

How to use

For the user interface you need to include the stylesheet in ./css/ directory like

<link rel="stylesheet" href="css/img.css">

To create a jigsaw create a div class="panel" and place the required image inside it like

<div class="panel">      <img src="img.jpg" width="480" height="480">  </div>

you need to mention the height and width for the code to perform its task

you need to include the scripts in ./js/ directory like

<script src="js/jquery.js"></script>  <script src="js/img.js"></script>  <script>      $(".panel").jigsaw({freq: 2000});  </script>

在线演示

基于任何图像轻松创建拼图的jQuery插件:Image jigsaw

screenshot

alt tag

项目主页:http://www.open-open.com/lib/view/home/1411914033125