基于任何图像轻松创建拼图的jQuery插件:Image jigsaw
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>
screenshot
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!