- All Topics:
- apps
- css
- dashboard
- games
- javascript
- mobile
- node
- php
- tehcl
- textmate
- tools
- video
- updated:
- 2009.02.17
- published:
- 2009.02.17
- topics:
- css
- javascript
- mobile
WebKit based browsers like Safari have had CSS Transforms for quite awhile now, allowing developers to skew, translate, rotate, and scale HTML elements or the entire page with CSS alone. The Firefox 3.1 betas also now have CSS transformations. These CSS properties can also be animated with JavaScript, although finding documentation for how to do it in Firefox 3.1 was a bit of a hassle. Let me show you how it is done.
Update: CSS Transforms are now available in Safari, Chrome, Firefox 3.5+, IE9+, and Opera. Check out my patch that enables setting and animating CSS Transforms with jQuery.
- updated:
- 2009.02.13
- published:
- 2009.02.13
Unix time 1234567890 is quickly approaching today has passed. Don't know what the heck that means? Want to know exactly how much longer before it happens? Check out 1234567890day.com. I decided to quickly whip together a couple ways for geeks to count up to the event on the command line.
- published:
- 2009.02.09
- topics:
- php
Glen Stansberry recently shared his great tutorial about 10 PHP Mistakes, but I thought there was one other mistake so important and easy to make that it was worth explaining: PHP programmers of all skill levels can easily use the empty() language construct incorrectly.
- published:
- 2009.01.27
- topics:
- javascript
I felt like I should do something fun with the zachstronaut Error 404 page. Doing something witty with your error pages (specifically 404) is a fine, long running tradition on the internets. I was reading Wikipedia pages about celestial objects and sifting through the NASA site for inspiration when I got bored and decided to play some Super Mario Bros. It was after beating World 1-4 that I had that "eureka!" moment.
- updated:
- 2009.01.24
- published:
- 2009.01.18
- topics:
- javascript
Hey, read this first: There has been I'm sure many further enhancements since my patches. I'd check up on the smooth scroll github project hosted by Karl Swedberg. He is the original author of the code that I patched and has been maintaining everything.
Update: I have developed a potential fix for the Opera bug Karl Swedberg discussed in his comment on this post. Update #2: I've made further changes after Karl's second comment.
When designing this site I decided I wanted to animate smoothly scrolling to same-page #links, such as my link to the moon. I decided to use the "improved" version of the animated scrolling code originally written by Karl Swedberg. I've since found two fixed three bugs with this code. Read the rest of this post for the details and fixes.