Posted by kyle on March 26, 2007 3:37 PM | bookmark / share: |
A couple weeks ago I mentioned the first release of svg2vml, a lightweight library that enables cross platform, JavaScript-driven vector graphics. Here's a quick example where I use svg2vml to create Digg style gradient buttons:
If you're reading from a feed reader that doesn't embed iframes, you'll need to click through to see the example.
Check out the frame source for full details. Notice that the button itself is an HTML DIV and that we use CSS and HTML elements to define and position our text. So it's possible to mix HTML and vector graphics as you see fit.
We're just scratching the surface. svg2vml can do all kinds of cool stuff. Have fun!