Placed in: Home
Lights Off - A puzzle game using HTML5 canvas

More and more HTML5 tutorials are popping up on the internet. Although it still is future talk, it's still great to see what this upcoming web standard can do for us.

One of the most interesting new HTML5 elements, has to be <canvas>. This element allows the developer to draw anything using JavaScript. I've never played around with this element, but still wanted to experiment with it.

Therefor, I re-created Lights Off, one of the first native games for the iPhone, but now using HTML5 <canvas>.

Lights Off - A puzzle game using HTML5 canvas

I know my attempt to create the game isn't nearly as great as the real app, but the goal for this tutorial is to see how the <canvas> element works. That said, this demo only works on browsers that support the element.

Demo Lights Off   Download Lights Off

Can you solve the puzzle? Simply click on a light panel to toggle it along with the four adjacent lights. Or dive into the code and learn some more about the <canvas> element.


Tags:  puzzle game tutorial html5 canvas
 
Sharing some fudge with Franz Jeitz

It has been a while since I've had a chat conversation with another designer/developer (it was with Chris Coyier). But for the last couple of weeks, I've had a great chat/interview with Franz Jeitz, which you may know from his blog: fudgegraphics - freebies, tutorials and inspiration for design lovers.

Franz Jeitz Chat

Let's sit down, take a cup of tea together with this tea-lover from London, and read this chat conversation with this creative man behind the scenes of fudgegraphics. Did you know the fudge-part of the name doesn't have anything to do with the food? Wonder what it does mean? I promise you, you'll find his answer surprising.


Tags:  fudgegraphics franz jeitz interview chat
 
jQuery quickie: Slot machine navigation

Navigation is one of the things you'll see on every website. I wanted to give this part a little bit extra life, and when I saw a movie yesterday that included slot machines, it suddenly hit me. Using jQuery and some basic CSS and HTML, we could add some sweet slot machine style animation to a normally boring kind of navigation. So, for today, we'll be creating a slot machine style navigation that you could use on your website.

Slot machine navigation

Since it's not such an advanced technique, this is also a jQuery quickie. These relatively simple tutorials will also give you a good understanding of jQuery. Simply check out the demo or download the source to see what we're going to make.

Demo Slot machine navigation   Download Slot machine navigation

Already wondering how it works? Check out how you can create this slot machine yourself. Of course, this could easily be transported to be used with social media buttons (instead of the main navigation of your site).


Tags:  slot machine navigation jquery simple tutorial
 
jQuery quickie: Unlimited Scroll using the Twitter API

Time for another relatively simple jQuery tutorial, just like my previous jQuery quickie. At work, I'm currently working with Silverlight and implemented unlimited scroll. This is a great technique that could be used on loads of websites. Instead of the regular pagination, where the user has to click to see the next page, unlimited scroll automatically loads the next page when the user is at the bottom.

I wanted to take this technique and port it to another jQuery example. So the quickie for today is Unlimited scroll using jQuery. I've using the Twitter API to make the example, so you'll learn a little bit about JSON too.

Unlimited Scroll using the Twitter API

Simply check out the demo to see the first tweets from my Twitter stream. Scroll down to load more tweets and see the unlimited scroll in action.

Demo Unlimited Scroll using the Twitter API   Download Unlimited Scroll using the Twitter API

Of course, you can use this same technique for something else instead of loading tweets, for example for loading next blog posts etc. Now, let's take a look at how you can create this Twitter example.


Tags:  scroll twitter jquery tutorial simple
 
Animated wicked CSS3 3d bar chart

Do you remember the Wicked CSS3 3d bar chart that I placed online a couple of weeks ago? Paul Irish left a comment, requesting for an example with transitions. My reply was that I was already working on that, and today I'm proud to release the animated wicked CSS3 3d bar chart.

The principle is the same as the previous version: Create a beautiful 3d bar chart. But this time, we don't create a "stacked" one (since animation would be hard), but several bars placed under each other. When hovering, the animation shows and the bar will grow to the appropriate size.

Animated wicked CSS3 3d bar chart

One of the neatest things of this example (in my opinion), is that it uses the exact same HTML (except for the title) as the original article (wicked CSS3 3d bar chart). It's a great example to show what you can do with flexible CSS; You can create a totally different page with the same HTML and using only a different style sheet file.

Demo Animated wicked CSS3 3d bar chart   Download Animated wicked CSS3 3d bar chart

Take note that this example only works in -webkit based browsers (Safari and Chrome), because those are the browsers that currently only support CSS3 animation (The next version of Firefox will support animations too). So, once again, this example is just a sneak peak into some awesome stuff CSS3 can do for us.


Tags:  animation css3 bar chart 3d
 
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>

Results 1 - 15 of 325
Subscribe

5649 readers subscribed here. Subscribe today!