PDA

View Full Version : [3.2.1][CSS3] Ext.Element.CSS3Spotlight b1



mitchellsimoens
13 Jul 2010, 6:49 AM
Have a Webkit browser? Or Firefox 4b1? Or Opera 10.5+? Need something better (IMHO) than the current Spotlight implementation?

Demo: http://www.simoens.org/projects/CSS3Spotlight/
Demo 1: http://www.simoens.org/projects/CSS3Spotlight/demo1.html

Github: http://github.com/mitchellsimoens/CSS3Spotlight

Let me know if you find any bugs! I think I may put in that the spotlighted element should come to the very front (simple z-index change) and then add this spotlight.

Sidenote - I am required to give credit to my girlfriend for the color idea..... 8-|

aw1zard2
13 Jul 2010, 8:12 AM
Awesome job! Found a small bug that wasn't updating the color on the spotlight I had to hit the hide spotlight and spotlight buttons a few times before it would show up. And maybe make a toggle button for spotlight instead of the 4 buttons.

I'm using Firefox 3.6.6 on Win XP SP 3.

mitchellsimoens
13 Jul 2010, 8:44 AM
Awesome job! Found a small bug that wasn't updating the color on the spotlight I had to hit the hide spotlight and spotlight buttons a few times before it would show up. And maybe make a toggle button for spotlight instead of the 4 buttons.

I'm using Firefox 3.6.6 on Win XP SP 3.

This is because with CSS3 there are now DOM event listeners to which this uses. I just tested on my FF 3.6.6 and the function does not fire.

About a toggle button... thought about it and will probably wrap that in aswell.

mitchellsimoens
14 Jul 2010, 11:54 AM
Just bumping to say that Github has a couple bug fixes and I have also created another demo (link in the orig post above)