background preloader


Facebook Twitter

TShadwell/Horrible.js. Bookmarks for destroytoday tagged 'javascript' Zynga/scroller @ GitHub. Accelerated panning and zooming for DOM and Canvas Dependencies Zynga Scroller has no dependencies to other JavaScript libraries.

zynga/scroller @ GitHub

Demo Install Just copy over the 3 JavaScript files from the "src" folder to your local JavaScript project and include them in the following order "Raf.js", "Animate.js" and "Scroller.js". It also supports Jasy - our build system - to auto-detect dependencies. License Copyright (c) 2011 Zynga Inc., 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.

Authors Download. LungoJS - Kitchen Sink. Spin.js. Example Features No images, no external CSS No dependencies (jQuery is supported, but not required) Highly configurable Resolution independent Uses VML as fallback in old IEs Uses @keyframe animations, falling back to setTimeout() Works in all major browsers, including IE6 MIT License Spin.js dynamically creates spinning activity indicators that can be used as resolution-independent replacement for AJAX loading GIFs.


Usage The spin() method creates the necessary HTML elements and starts the animation. Manual insertion In order to manually insert the spinner into the DOM you can invoke the spin() method without any arguments and use the el property to access the HTML element: var spinner = new Spinner().spin(); target.appendChild(spinner.el); Positioning Since version 2.0.0 the spinner is absolutely positioned at 50% of its offset parent. Tablecloth.js. Best. Isotope. Cubism.js. Time Series Visualization foo7.6 bar−6.2 foo + bar1.4 foo - bar14 Cubism.js is a D3 plugin for visualizing time series.


Scalable Cubism fetches time series data incrementally: after the initial display, Cubism reduces server load by polling only the most recent values. Effective Cubism also scales in terms of perception: small multiples aligned by time facilitate rapid comparison. Area (120px)7.6 Area (30px)7.6 In contrast, horizon charts reduce vertical space without losing resolution. Foundation: Rapid Prototyping and Building Framework from ZURB. Bootstrap, from Twitter. Need reasons to love Bootstrap?

Bootstrap, from Twitter

Look no further. By nerds, for nerds. Built at Twitter by @mdo and @fat, Bootstrap utilizes LESS CSS, is compiled via Node, and is managed through GitHub to help nerds do awesome stuff on the web. Made for everyone. Bootstrap was made to not only look and behave great in the latest desktop browsers (as well as IE7!) Timeline - A JavaScript Library For Beautifully Crafted Timelines That Are Easy, And Intuitive To Use. Turn.js - The page flip effect for HTML5. A Detailed Overview of the Model-View-Controller (MVC) Coding Structure.

The model-view-controller or MVC is software architecture commonly used for creating web applications or software.

A Detailed Overview of the Model-View-Controller (MVC) Coding Structure

In other words, it's a structure for web applications to follow in order to ensure efficiency and consistency. Many of the most popular frameworks use the MVC architecture, including ASP.NET, CodeIgniter, Zend, Django, and Ruby on Rails. At the same time, there are many web developers who don't use a coding framework yet still set up their applications to follow the MVC structure. In this article we'll look in more depth at what the MVC architecture is in detail, and what each part is, and why you should be using it.

Why You Should Use It Without a good reason to use a new structure, framework, technology, or trend, many developers may have a hard time getting motivated to learn a new topic. With the separation of the use of code between the three file types, you obtain a separation in web application logic. Controllers Models Views MVC Diagram File Structure More Resources. Stamen Maps. Javascript motion detection. This is a motion detection experiment in javascript, and before starting any explanation: Click here to see the demo.

javascript motion detection

To see this demo with your own webcam, you will need to download a browser that enables some new features as explained in this link. To make it simple, I’ve used Google Chrome Canary, go and get it! I used an html 5 API this is not released yet, the html 5 getUserMedia API. This API makes you able to use a webcam stream in javascript. So what is the demo about? I use a webcam feed, I put a xylophone image on top of it and I detect the user’s movements to play the xylophone.

To detect the user’s movement I used a technic that is probably well-known by developers, designers and motion designers: the blend mode difference. The concept is, if you put a picture on top of the same picture and blend them together using the blend mode difference, you obtain… a black screen!