Why is it when someone asks for something, I take it as a challenge? Why can’t I leave well enough alone?
Turns out, I can make drop shadows and rotating images play nice together after all. Unlike the previous solution which uses the next-generation of the script.aculo.us library (called scripty2), this implementation is done with HTML5:
While it looks okay in Firefox, this solution produces some strange results in Chrome and Safari. I haven’t even tried IE yet, but I’m sure it won’t be pretty. Anywho, looks like drop shadows may be a possibility in the future too.
One of ditzie’s ancestors is an application called AjaxVTT, which I wrote and ultimately abandoned several years ago. Like ditzie, it was a browser based application that relied heavily on Javascript. Among its numerous features (many of which ditzie cannot yet claim), it supported image rotation. Of course, this was before any of the modern scripting libraries existing, just as it was well before HTML5, so you can imagine that the method I was using to handle rotating images wasn’t the best in the world. It was, in fact, a real pain in the rear, even though it was functional.
With today’s newer browsers and the power of advanced scripting it’s pretty trivial to knock together in-browser image rotation. Therefore, I’d like you to behold a demo of what I think is one of the most important features on ditzie’s horizon (just tap the left or right arrow keys to watch the magic):
This is a feature that I’m quite anxious to add to ditzie, but alas, there’s some back-end work that needs to be done to support it first. Rest assured, however, that image rotation is something that ditzie will support in the not-too-distant future.