Gallery archive
A CSS backgammon board
2007-09-11 19:10
One of the things I usually do when I want to get to know a new API, new functionality, or learn something old, is to play around with it.
Since Opera 9 added better (read: Near complete) support for selectors from the CSS3 Selectors working draft, I felt the need to familiarise myself with more of the spec, and a challenge from Rune, I wanted to take a stab at creating a rendering of a backgammon board using only CSS, and completely devoid of any markup cruft.
Without further ado, I present the CSS Backgammon board using a variety of selectors and CSS Border Slants. Renders correctly in Opera 9.50, breaks in Firefox 2 and MSIE. Status for other browsers unknown.
More <canvas> Runny image
2006-01-02 10:14
Now, before I get back to my regular programming, I’ll do one more canvas effect:
Should work in Opera 9 and Firefox 1.5.
In addition, I’ve done modifications to the code in the image manipulation examples. At least the fade effect works in FF 1.5 now.
<marquee> on acid: Sine scroller
2005-12-30 18:48
Doing canvas stuff was so much fun, I decided to try my some more old-school demo effects. This is a small sine scroller:
- View the sine scroll demo
- Works in Opera 9 - fails in FF 1.5 (FF doesn’t seem to support clip?) — Other browsers untested.
Image manipulation in <canvas>
2005-12-29 16:50
Christmas is a time to meet family and friends. Incidentally it’s also a time to code on all the stuff you never have a chance to do during regular working hours. During my one-week holiday, I’ve spent some nights playing with the <canvas> element, creating a few demos of image manipulation.
Canvas: Mandelbrot
2005-10-21 15:03
In the first of my series of postings about the canvas element: A mandelbrot generator that allows you to save the generated image. This demo works really well in Opera 9, and fails in Firefox, because of repeated “This script is taking to long to run” messages.
The really quick manual:
- Select a size. The default is 640×480 - you can go as high as 1600×1200 if your computer is fast enough.
- Click “Plot” to see the painted image
- If you want to zoom in, you do so by either editing the coordinates directly, or by clicking twice on the map to select that area. Click “Plot” again to repaint.
- If you have found a particularily interesting area, you can save it by clicking “Open as PNG”. This will open the image in a new window as a data: URI.
Open the Mandelbrot demo
Ultra-simple rounded CSS tabs
2004-01-05 12:22 – Six comments
Rounded tabs using CSS pseudo elements :before and :after.
Rounded corners with CSS
2003-08-06 21:27 – Nine comments
Rounded Corners in CSS that can be added to any existing design. These corners will fit boxes of any size, and uses the CSS pseudo elements :before and :after.
More fun with :target
2003-08-01 19:12 – Three comments
A prototype GUI, using CSS :target to minimize complicated Javascript. Draggable, semi-transparent windows, with an added 58 lines of Javascript to make windows draggable.
Fun with :target
2003-07-09 16:44 – 13 comments
A prototype GUI, using CSS :target to minimize complicated Javascript. Draggable, semi-transparent windows.
Javascript performance
2003-05-15 12:00 – Leave a comment
Two different javascript performance tests using a real-world script that adds syntax highlightning and code collapsing to code fragments in HTML pages.
CSS Media queries test
2003-04-10 13:07 – Leave a comment
Simple, collected test to determine support for various aspects of CSS3 Media Queries
Alt and title for images
2003-01-30 00:39 – One comment
A short guide on the correct usage of the alt and title attributes for images in HTML/XHTML.
Transparent PNG
2003-01-23 00:28 – One comment
Quick tutorial/demo to show how 24-bit PNGs can be used to create transparency effects on web pages.