jQuery illuminate
Ever wanted to add a little flare or shine to your CSS buttons? Perhaps, you want to attract more attention to your buttons and textboxes by making them stand out or illuminate. Well, with the jQuery illuminate plug-in you can do just that.
- Include all necessary javascript files:
- Create Your CSS/HTML object
- Illuminate the CSS/HTML object
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script>
<script type="text/javascript" src="jquery.illuminate.0.7.min.js"></script>
jQuery illuminate has several options which allow you to customize the illumination effect. The options are shown below:
To add any or all of these options, the code would look as follows:
- If the element that you are trying to apply the illumination effect on is not working, make sure that the CSS background color is set.
- If you are having problems getting the plug-in to work. Make sure you have all the necesarry javascript plug-ins added. You will need to link to the latest jQuery file and the jQuery UI file along with the illuminate file.
Here is a quick video tutorial, showing how to implement this plug-in.
You can download the sample files from the video here: Download
The jQuery illuminate plug-in can be freely used or modified. If you would like to share your updates and contribute to the plug-in, please feel free to
Additionally, feel free to post a comment below.
Thanks
Leave A Response
17 Responses
6.4.2011
Hi, Tony
Thank you for your illuminate plug-in, it is so cool~~~~!!!!
And it is very easy to apply.
The question is , how can I switch off the illuminate effect of a specific
object?(by events)
What I am trying to do is turn on the illuminate effect when mouse over the button and turn it off when mouse out.
Is this possible?
And thank you again. I love your illuminate plug-in!
6.8.2011
Hey Chris
Thanks for the comment. Yeah, it is possible to show the effect inside of a hover event. The plug-in also contains a function where you can kill the illumination effect. The function to call is ‘illuminateDie()’. The code would look like the following:
$("#button").hover(function(){$("#button").illuminate();
}, function(){
$("#button").illuminateDie();
});
Let me know if that helps
6.9.2011
nice, definitely going to use this
6.14.2011
nice plugin one to have in developer toolbox.
6.15.2011
Any ideas what the issue is with FF4? I really wanted to use this, but without FF4
6.17.2011
Yeah, the plug-in still works with FF4; however, the outer glow does not show. Since jQuery does not natively support box-shadow animation, I had to use a hook from the following source: https://github.com/brandonaaron/jquery-cssHooks. It is the boxshadow.js. If you can get that to work in FF4, I can get the plug-in to work. The problem is FF4 supports the default ‘box-shadow’ CSS property, so it conflicts when detecting which browser the user is currently using by adding the -moz-box-shadow CSS attribute.
If you could help out that would be awesome. I’m going to make sure this gets fixed in the next version
6.18.2011
could the background color be use rgba(0, 255, 255, 0.9) format? so you could play with alpha?
7.22.2011
Tony, I love this illuminate plug in, it is exactly what I was looking for to give a button some attention. I have discovered however that it does not work in IE v7. It works great in Firefox, but unfortunately not in IE. Any suggestions or ideas for how I can add some code to make this work. I would really like to use it.
Thanks in advance
Paul
7.25.2011
yeah it is working… but i’m having a problem… why is that when i change the color it is not blinking, it just stops after the first glow… do you guys experience that too?? i am new to javascript/jquery animations… and i find it really interesting than flash though i am once a flasher.
7.25.2011
it’s ok now!! thanks for sharing this!
8.3.2011
Brilliant.
Many thanks–this is something that will be fun to use.
8.19.2011
Thanks for the kind words. You are very welcome
8.19.2011
Hey Paul,
Thanks for the comment. I always hate working with previous versions of IE, perhaps in the future I can get this to work with previous versions of IE, but for now I’m on a few other projects. If you have anything to attribute to the plug-in, I’d be more than happy to add it
Thanks again.
8.19.2011
Actually, right now it’ll be converted to a Hex value. Perhaps, I can add this in the next version
9.19.2011
hi.
I’m trying to download the jquery and attach it to my html but it says its not on the local disk. Is there some other way to download it?
Thx!
11.26.2011
Instead of a glowing solid color, can it glow in gradients? For example using:
( background-image:-moz-linear-gradient(0% 90px 90deg, #000000, #e5e5e5); background-image:-webkit-gradient(linear, 0% 0%, 0% 130%, from(#e5e5e5), to(#000000));)
THANKS!
11.29.2011
hi,
i really like this plugin, and hoping i can use it on images. Can I use this effect on images instead of buttons? how can i customize the code to work with images?