background preloader

Lazy Line Painter

Lazy Line Painter

http://lazylinepainter.info/

Adding table rows and columns in JavaScript With insertRow() method you can insert a new row at the specified position in HTML table. After row is created, use insertCell() method to insert a table cell. Wrap this methods in JavaScript functions and you have code to dynamically add new rows and columns in the HTML table. Please try to click the buttons below ... When you click the "Add row" button, appendRow() function is called. Function is simple, table row is inserted at the last position, and loop iterates through table cells in the first row.

SVG Path Animation with jQuery and Illustrator As technology in the web moves forward we are offered new tools to build amazing web applications. Scalable Vector Graphics or SVG’s have been gaining traction in the past year or so as most browsers handle the image file extension ‘.svg’. You can see the break down over at CanIUse.com. In this tutorial we will build a path animation using a super slick jQuery Plugin called Lazy Line Painter by Cam O’Connell. Cam is a London based front-end web developer with a passion for building interactive web applications and plugins. Here is the Demo and Source files for what we will be building. Raphaël—JavaScript Library What is it? Raphaël is a small JavaScript library that should simplify your work with vector graphics on the web. If you want to create your own specific chart or image crop and rotate widget, for example, you can achieve it simply and easily with this library. Raphaël ['ræfeɪəl] uses the SVG W3C Recommendation and VML as a base for creating graphics.

The Nature of Code Hello! By browsing the table of contents on your left, you can read the entire text of this book online for free, licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License. Start reading the introduction now! Animate SVG Icons with CSS3 & jQuery November 30, 2013 | Web Development | By Joseph Howard Recently, there’s been a lot of buzz throughout the web design and development community on using SVG for icons. Due to a number of limitations and inconveniences, using raster-based images for your icons, has become an increasingly painful and restricting endevour. jQuery EasyTabs Plugin Demo HTML Markup for these tabs <div id="tab-container" class="tab-container"><ul class='etabs'><li class='tab'><a href="#tabs1-html">HTML Markup</a></li><li class='tab'><a href="#tabs1-js">Required JS</a></li><li class='tab'><a href="#tabs1-css">Example CSS</a></li></ul><div id="tabs1-html"><h2>HTML Markup for these tabs</h2><!-- content --></div><div id="tabs1-js"><h2>JS for these tabs</h2><!-- content --></div><div id="tabs1-css"><h2>CSS Styles for these tabs</h2><!

How to Scale SVG Share this: monday.com helps you manage your projects. The following is a guest post by Amelia Bellamy-Royds. Organic Tabs This article was originally published on October 27, 2009 and is now being updated to 1) be turned into a jQuery plugin 2) have multiple demos on one page 3) utilize jQuery event delegation and 4) prevent animation queuing. Edited again on June 13, 2011 to use jQuery 1.6.1 and HTML5 Have you ever seen a tabbed content area in a sidebar that was a little "jerky"? The jerkiness can be caused by a bunch of things, like the content in the tabbed areas are of different heights, or maybe the way the switch happens the current one is hidden for a brief second before the new one shows up and the content below it jumps up and back down quickly. For lack of a better term, I'm calling tabs that behave more smoothly organic tabs . View Demo Download Files

Make SVG Responsive For an image format that features infinite scalability, SVG can be a surprisingly difficult format to make responsive: vector images do not adjust themselves to the size of the viewport by default. Make A Responsive SVG Image As an image, you can make a SVG vector illustration scale with the page content as you would any other: While this works in many cases, sometimes it isn’t enough, especially if you’re trying to embed the SVG illustration via an <object> tag or entering the code directly into the page. In that case, simply modifying the width and height of the element won’t work. Making Inline SVG Responsive

How to play a sound when an element is clicked in HTML page In this example we will demonstrate how to play a "click" sound when a link or other element is clicked in HTML pages. A sample code for jQueryMobile is also provided. An MP3 audio file is used play the actual sound. You have to have jQuery in your page for this to work. Sound is played through HTML5 <audio /> tag but instead of embedding the tag manually, the tag is created via Javascript/JQuery. Below is how this is done.

HTML5 Audio and JavaScript Control HTML5 features an elegant new audio tag implementation and the specification includes simple HTML audio controls that allow audio playing in pages without plugin or script support. On this page we'll explore integration of these new HTML5 audio features with JavaScript to create complex soundscapes. Some further links about the audio tag: Updates October 31, 2010: Matched the latest version of the HTML5 spec (preload instead of autobuffer) A Note About Encoding Browser Sandbox The Spoon.net Browser Sandbox makes cross-browser testing and backwards compatibility easy. Just click Run for any browser to launch it instantly. Browsers run within an isolated virtual environment, eliminating the need for installs and allowing legacy browsers such as Internet Explorer 6 to run on Windows 7 and 8. Virtualized browsers behave exactly like installed browsers. And because they run locally, you can test web applications hosted on your own development machine or on internal servers. Simply launch the browser from Spoon.net or the Spoon Console and enter your test URL in the navigation bar.

rangy - A cross-browser JavaScript range and selection library A cross-browser JavaScript range and selection library. It provides a simple standards-based API for performing common DOM Range and Selection tasks in all major browsers, abstracting away the wildly different implementations of this functionality between Internet Explorer up to and including version 8 and DOM-compliant browsers. For manipulating selections in <textarea> and <input type="text"> elements, see Rangy's poorly-named and svelter twin project, Rangyinputs. Hosted files for the current stable release can always be found at while the latest development build can be found at These are intended for use in demos using tools such as jsFiddle. Download | Change log | Documentation | Demos | Discussion group Contents

Related: