基于任何圖像輕松創建拼圖的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 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!