background preloader

21 Ridiculously Impressive HTML5 Canvas Experiments

21 Ridiculously Impressive HTML5 Canvas Experiments

HTML 5 structure—HTML 4 and XHTML 1 to HTML 5 ・ @boblet 15 Useful HTML5 Tutorials and Cheat Sheets | Tutorials 1911 shares 8 Must-have Cheat Sheets for Web Designers and Developers As a web designer or developer, it’s nearly impossible to remember multiple programming languages, frameworks, and keyboard shortcuts to various applications. This is where cheat sheets can be a life saver. Most cheat sheets are designed to be printer friendly, so you can have them laying around on your desk as quick reference cards. So… Read More 2705 shares Photoshop CS6 Cheat Sheet Photoshop is one of the preferred tools of web designers, and like any other tool that is used over and over, it’s important to optimize one’s workflow by using keyboard shortcuts.

The HTML5 test - How well does your browser support HTML5? HTML 5 Overview and Resources Showcase When first looking to learn web design the amount of terms you’re faced with can be daunting which is why it’s important to focus your learning on specific languages and techniques. If you’ve been learning web design or development recently, or even if you’re a veteran of the web sector, you’re sure to have heard people mentioning HTML 5 here and there. So what is HTML 5? Well, this article is supposed to act as a what’s what of HTML 5, giving you an overview of just what HTML 5 is trying to achieve and where you can find more information on some specifics of the language. What is HTML 5? Essentially, HTML 5 is a new version of HTML / XHTML which specifically focuses on the wants and needs of web app developers. It allows developers to implement a ton of new features in the things they create, for example a lot of new drag and drop functionality, new structuring elements as well as improved support for audio and video. Why has it been developed? So, what are the main features of HTML 5? 1.

HTML5 Canvas Element Guide The HTML5 <canvas> element has a unique history. Starting out as an Apple creation and dating back to 2004, canvas was eventually added to the official W3C HTML5 spec, becoming one of the most interesting and exciting parts of HTML5. Unfortunately, this element takes a bit of work to understand and, unlike your usual run-of-the-mill HTML elements, requires more than just static markup and styling. In this guide, I hope to get you started on understanding the canvas element and what kinds of things are required and expected in its associated code. Definition and Markup I can’t possibly define the canvas element better than the official W3C spec, so I’ll just quote part of that document here: The canvas element provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, or other visual images on the fly. I also like the way Wikipedia describes its usage: As you can see already, this element has a bit of complexity to it. Fallback Content

How to Build Cross-Browser HTML5 Forms In this tutorial, we're going to take a look at how to serve HTML5 forms to modern browsers, while compensating for older browsers by using a mix of Webforms2, Modernizr, jQuery UI and assorted jQuery Plugins. Introduction HTML5 powered forms provide a great deal of semantic markup, and remove the need for a lot of JavaScript. One of the first efforts toward HTML5 was WHATWG's Web Forms 2.0, originally called XForms Basic. The ever-present issue, backward compatibility, still remains a headache though, unfortunately. Nonetheless, we want to use these new features, and use them, we will! Tool: Modernizer We'll be providing fallbacks only to browsers that don't support HTML5 forms, or certain parts of them. Modernizr is a small JavaScript library that tests the current browser against a plethora of HTML5 and CSS3 features. If you want to learn more about Modernizr, you might check out "A Video Crash-Course in Modernizr" premium tutorial available on the Tuts+ Marketplace. Tool: Webforms2

Canvas From Scratch: Advanced Drawing In the previous article in this series, you learned about the canvas element, and the basics for drawing on it. In this article, I'm going to demonstrate some of the more advanced drawing functionality. Setting Up We'll use the same HTML template from the previous article; so open up your favorite editor and paste in the following code: This is nothing more than a basic HTML page with a canvas element and some JavaScript that runs after the DOM has loaded. Drawing Circles In the last article I showed you how to draw basic shapes and paths; in this section I'm going to show you how to take things a step further and draw circles. There isn't a method in canvas that lets you draw a circle with a single line of code, like how fillRect works for rectangles. I'll explain how the arc method works shortly, but for now, let's draw a circle by adding the following code underneath the ctx variable: This will draw a circle positioned slightly away from the top left of the canvas: Looks simple, right?

Detecting HTML5 Features You are here: Home Dive Into HTML5 Diving In You may well ask: “How can I start using HTML5 if older browsers don’t support it?” Detection Techniques When your browser renders a web page, it constructs a Document Object Model ( ), a collection of objects that represent the HTML elements on the page. All DOM objects share a set of common properties, but some objects have more than others. There are four basic techniques for detecting whether a browser supports a particular feature. Check if a certain property exists on a global object (such as window or navigator). Modernizr, an HTML5 Detection Library Modernizr is an open source, MIT-licensed JavaScript library that detects support for many HTML5 & CSS3 features. <! It goes to your <head> Modernizr runs automatically. Canvas Your browser supports the canvas API. HTML5 defines the <canvas> element as “a resolution-dependent bitmap canvas that can be used for rendering graphs, game graphics, or other visual images on the fly.” canvas return !!

Uploading Files with AJAX | Nettuts I can’t seem to reach the end of the fun stuff you can do with emerging web technologies. Today, I’m going to show you how to do something that—until the last while—has been almost unprecedented: uploading files via AJAX. Oh, sure, there have been hacks; but if you’re like me, and feel dirty every time you type iframe, you’re going to like this a lot. Join me after the jump! Why don’t we get the bad news over with? This doesn’t work in every browser. Our AJAX upload will work as long as FormData is available; otherwise, the user will get a normal upload. There are three main components to our project. The multiple attribute on the file input element.The FileReader object from the new File API.The FormData object from XMLHttpRequest2. We use the multiple attribute to allow the user to select multiple files for upload (multiple file upload will work normally even if FormData isn’t available). With that out of the way, let’s get coding! Step 1: The Markup and Styling The HTML Pretty basic, eh?

Impact - HTML5 Canvas &amp; JavaScript Game Engine 25 Examples of Thumbnail Usage in Web Design Wikipedia tells us that "thumbnails are reduced-size versions of pictures, used to help in recognizing and organizing them, serving the same role for images as a normal text index does for words." And as we all know, a picture is worth a thousand words, so using an image in a nice and beautiful form can give your layout a very neat look. Wikipedia tells us that “thumbnails are reduced-size versions of pictures, used to help in recognizing and organizing them, serving the same role for images as a normal text index does for words.” And as we all know, a picture is worth a thousand words, so using an image in a nice and beautiful form can give your layout a very neat look. Since images are a very important part of a website, we decided to gather some examples of how websites are using thumbnails to organize and showcase their content. From layouts completely based on thumbnails and others using a few to get attention to a specific subject, we have a lot of inspiring examples to show you.

30 Must See HTML5 Tutorials HTML5 and CSS3 expanded the possibilities of web design. There are lots of designers and developers who started practicing HTML5 and implementing it in their web designs. In this roundup we have featured 30 useful HTML5 tutorials that will definitely help developers increase their skills.. Making a Beautiful HTML5 Portfolio Create Vector Masks using the HTML5 Canvas Create a Stylish Contact Form with HTML5 & CSS3 Create a Grid Based Web Design in HTML5 & CSS3 Fullscreen Slideshow with HTML5 Audio and jQuery Build a Neat HTML5 Powered Contact Form HTML5 & CSS3 envelope contact form How to Build Cross-Browser HTML5 Forms Banish JavaScript in Web Forms with HTML5 HTML5 Grayscale Image Hover Cross-Browser HTML5 Placeholder Text Build your First Game with HTML5 How to create a Progress bar with HTML5 Canvas An HTML5 Slideshow w/ Canvas & jQuery Rethinking Forms in HTML5 Implementing HTML5 Drag and Drop How to Make an HTML5 iPhone App Blowing up HTML5 video and mapping it into 3D space

Canvas You are here: Home Dive Into HTML5 Diving In HTML 5 defines the <canvas> element as “a resolution-dependent bitmap canvas which can be used for rendering graphs, game graphics, or other visual images on the fly.” A canvas is a rectangle in your page where you can use JavaScript to draw anything you want. So what does a canvas look like? Invisible canvas The markup looks like this: Let’s add a dotted border so we can see what we’re dealing with. Canvas with border You can have more than one <canvas> element on the same page. Let’s expand that markup to include an id attribute: Now you can easily find that <canvas> element in the DOM. var a_canvas = document.getElementById("a"); Simple Shapes Every canvas starts out blank. Click to draw on this canvas The onclick handler called this function: function draw_b() { var b_canvas = document.getElementById("b"); var b_context = b_canvas.getContext("2d"); b_context.fillRect(50, 25, 150, 100); } And then there’s this Every canvas has a drawing context Paths path .

Related: