Through The Lens

A Photographers Blog

Experiments with Light

November3

Yesterday there was a black out in our area. It was pouring and my laptop’s battery ran out..as I was sitting in the dark with a candle I thought of some pictures and here are the results.

Jesus, lighting your life and hopes

Groping in the dark

All Images and text © Praveen Chamarthi 2006

Flora at Lalbaugh Botanical Garden

October30

This weekend I was at Lalbaugh, the largest Botanical garden in Bangalore.

A slight drizzle and heavy over casted sky followed me everywhere. Here are a few shots I managed to take.

Lotus

Pollenation

Star Stem

Images copyright Praveen Chamarthi

Kebabs

October25

Feasting after fasting

Varieties of kebabs and other snacks prepared during ID
Beef Kebabs

Barbequed Kebabs

Kebabs

and of course the famous indian snack - SAMOSAS

Samosas

Comment on Pottery by Praneel

October18

Nice Work. I suggest another caption - “Perfection”

Highlight Images on mouse-over using Opacity

October18
Sometimes you might want to blur (reduce the opacity) an image on default and bring it back to being opaque on mouse over. You can use this effect to keep the users focus on your content rather than those links bar on the top of the page: for e.g. you can make your full menu bar with links less opaque or more transparent by default and highlight them on mouse over.
So how do we acheive this? Very simple the answer to this is to use the “opacity” property.

Opacity property can have the following values: 0.0 to 1.0 any values outside this range will be clamped into this.

Opacity: 1.0 means that the element is 100% Opaque or in other words 0% transparent.
Opacity: 0.0 means that the element is 100% transparent or in other words 0% opaque.

according to W3C this is how opacity should be defined opacity: 0.5

But Mozilla and IE had their own ways of implementing this

IE wants this for opacity to work filter:alpha(opacity=50)

and Mozilla wanted this -moz-opacity: 0.5

but newer versions of Mozilla doesn’t require this (I haven’t tested this but you can check it yourself by applying this style)

opacity.css

body{
font-family: “Trebuchet MS”,Trebuchet,Verdana,Sans-Serif;
background-color: #FFF;
color: #eee;
}

a.myopacity img{
border: none;
padding: 3px;
filter:alpha(opacity=65);
-moz-opacity: 0.65;
opacity: 0.65;
}

a.myopacity:hover img{
border: 1px dotted #000;
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
}

The result


Highlighting images on mouse-over

or you can see this here in action

http://www.praveenc.com/gallery.html

and by the way I forgot to mention that opacity can be applied to all elements.

Means you can apply this to text blocks, div’s, images, hyperlinks..or whatever you like. So go ahead and freak out.

Good day people!!!

Comment on Pottery by Vikramdev Rao

October18

Great shot Praveen. The lighting and the detail are excellent.

Comment on Siem Reap to Poipet by Vikramdev Rao

October18

Thanks for a detailed travelouge. Very interesting and informative. Got to remember it for when I make a trip. You must have been quite tired as it took you almost a month to post your blog. Anyway all the best and maybe we’ll meet on another trip someday

Comment on Bayon, Angkor Thom: Cambodia by Vikramdev Rao

October18

You must have been disappointed. It can be quite frustrating especially when you are looking forward to a particular view.

Comment on Bangkok to Siem Reap, Cambodia by Vikramdev Rao

October18

Culture shock no doubt! I wonder what makes people so despotic and ruthless. Why can’t we live together in peace? It must be greed and need for power. Its not just here but all over the world in one form or other. When will we evolve into a more tolerant people?

Comment on Bantaey Srei, Bantaey Samre, Sra Srang, Bantaey Kdei and Ta Prohm by Vikramdev Rao

October18

Nature does have this great ability to regenerate and reestablish itself when left alone. It is we humans that are responsible for destroying instead of living with nature.

« Older EntriesNewer Entries »