10 个实用的JavaScript开发库

fmms 12年前
     <h2>Hammer.js</h2>    <p>Probably one of the lightest JavaScript libraries around, <a href="/misc/goto?guid=4958338932874773219">hammer.js</a> weighs at only 2KB. The library offers touch support for touch devices. The library allows a developer to add tap, double tap, drag, hold and transform actions. In addition, hammer.js can be bound to an HTML element allowing a touch event to return a callback with any kind of array whether it is an event, rotation, position, scale or touch.</p>    <h2>HTML Canvas Library</h2>    <p>Even with the new <canvas> element, it may be a little challenging to create animations and visualizations. The <a href="/misc/goto?guid=4958338933668423148">HTML Canvas Library</a> offers a standalone and lightweight JavaScript wrapper to simplify the whole process. Tasks like frame-rate control, rotations, multi-touch, image loading and other animations can be done easily and in a consistent manner. The library also supports high-performance animations.</p>    <h2>Smoke.js</h2>    <p>Have you ever wanted to customize alert notifications for your website? <a href="/misc/goto?guid=4958338934457074670">Smoke.js</a> is a small JavaScript library that helps you do that. The library replaces the default alert function with CSS notifications that do not require any JavaScript frameworks. Each alert can be customized inside functions by specifying styles using CSS3 animations and backgrounds.</p>    <h2>Kinetic.js</h2>    <p>The <canvas> element continues to get lots of hype in the HTML5 circles and the <a href="/misc/goto?guid=4958338935246920642">Kinetic.js</a> library adds to that hype as well. This library enables canvas interactivity by allowing you to draw shapes and images using the canvas API for both desktop and mobile applications. You can move, scale and rotate images independently for high performance animations as well as add event listeners to them.</p>    <h2>JSZip</h2>    <p>If you are looking to serve your users with zip files without wasting server resources and bandwidth, <a href="/misc/goto?guid=4958338936029869208">JSZip</a> can do it for you. Not only is it simple to use but it allows you to zip multiple files without generating a lot of data. By getting the client-side to do the heavy-lifting, no server-side resource is used allowing you to use the saved bandwidth for other things.</p>    <h2>PDFKit</h2>    <p>Allowing PDF document viewing or download on your site will require that all your documents reside in that format. The <a href="/misc/goto?guid=4958338936829731081">PDFKit</a> document generation library makes your work easy by creating printable PDF documents for you. Generating documents has been made easy and only requires a few function calls.  It supports vector graphics, font and image embedding and annotations within the generated documents. The library runs on the node.js platform and has a great API for integrating with apps using server-side JavaScript.</p>    <h2>Fitvids.js</h2>    <p>If you deliver video on your website, you need the flexibility to resize your video embeds. Unfortunately, this can be a little hectic as you have to code that into every video that you embed. <a href="/misc/goto?guid=4958197524504456217">Fitvids.js</a> saves you that hustle by use of a JQuery plugin. With this plugin, you can add fluid video embeds to make responsive websites that your users will love to interact with.</p>    <h2>Impress.js</h2>    <p>Who still uses programs like Powerpoint when your browser can serve the same purpose? The <a href="/misc/goto?guid=4958197524504456217">impress.js</a> library turns your browser into a powerful presentation tool. It uses CSS3 transforms and transition to deliver powerful presentation features right within the browser window. Just visit the link above to get the feel of what this library can do.</p>    <h2>Colors</h2>    <p>Color adds…..well, color to your website and applications. The <a href="/misc/goto?guid=4958338939090253106">Color JavaScript library</a> allows you to manipulate colors in multiple ways and can generate random color values. In addition, it can get complimentary color values and handle unit conversions of multiple types including RGB to Hexadecimal, Hexadecimal to RGB among others.</p>    <h2>GMap</h2>    <p>Do you find it difficult or challenging to embed Google Maps on sites? This <a href="/misc/goto?guid=4958184396570227811">GMap</a> offers a flexible and highly customizable way of embedding Google Maps onto your website. The plugin weighs in at only 2KB, giving developers a way to have maps on sites in a lightweight style.</p>