🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL


Documentation

Stitches

Stitches is an HTML5 sprite sheet generator. The current version is 1.3.5. Documentation is available here.

Implementation

After dependencies, Stitches requires a stylesheet, a script, and an HTML element to get the job done:

<link rel="stylesheet" href="css/stitches-1.3.5.min.css">  <script data-main="js/stitches.js" src="js/stitches-1.3.5.min.js"></script>

The sprite sheet generator is automatically created in elements that have the stitches class:

<div class="stitches"></div>

If you choose, any images that are a part of the initial markup will be loaded onto the canvas:

<div class="stitches">     <img src="img/test/github.png" data-name="github"/>     <img src="img/test/gmail.png" data-name="gmail"/>     <img src="img/test/linkedin.png" data-name="linkedin"/>     <img src="img/test/stackoverflow.png" data-name="stackoverflow"/>     <img src="img/test/tumblr.png" data-name="tumblr"/>     <img src="img/test/twitter.png" data-name="twitter"/> </div>

Dependencies

jQuery 1.7.1, Modernizr 2.0.6, Bootstrap 2.3.0

<link rel="stylesheet" href="libs/bootstrap/css/bootstrap.min.css"> <link rel="stylesheet" href="libs/bootstrap/css/bootstrap-responsive.min.css">  <script src="libs/jquery/jquery-1.7.1.min.js"></script> <script src="libs/modernizr/modernizr-2.0.6.min.js"></script> <script src="libs/bootstrap/js/bootstrap.min.js"></script>

Download

The latest release, 1.3.5, is available here.

Contributors

License

(The MIT License)

Copyright (c) 2013 Matthew Cobbs

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


You May Also Like