Archive for the ‘Javacript’ Category

Link mode

without comments

Tralhas interessantes que encontrei hoje:

- [Firebug Lite](http://www.getfirebug.com/lite.html), para Safari/IE/Opera. Basicamente uma consola de Javascript, mas pode dar jeito.
- [Kayak.com](http://www.kayak.com/), site de reservas de voos e hotéis muito rápido com recurso a Ajax. Pode dar jeito daqui a uns meses para as férias… :)
- Last but not least, a minha fonte preferida do OS/2, a WarpSans, em [formato Truetype](http://www.cs-club.org/~alex/creative/fonts/index.html). Tenho que arranjar tempo um destes dias para meter no VMware ou no Parallels (se o trial ainda estiver activo) o ISO do demo do eComStation, aka OS/2 4.5.

Written by Pedro Cardoso

March 14th, 2007 at 2:11 am

Javascript/CSS Image Reflection

without comments

reflex demoHere is a new CSS/Javascript hack of mine: transparent image reflection, like it can be seen on the image on the left.
Been toying with this for the last few days and after some testing here it is. It’s slow, not fully tested, and probably not good enough to be used, but this can be something to improve and build on.

The idea itself is not original, as it can be seen in lots of places, from websites to software, but this implementation is as far as I know unique, in the sense it does not require browser support for the Canvas tag, like this implementation.

It’s working with Safari, IE and Firefox. IE and Firefox support animated gifs as background, so if the source image is a animated GIF so is the reflection.

Here it is, play with it, check the source and let me know if you liked! :)

Written by Pedro Cardoso

April 24th, 2006 at 11:07 pm