Is there a way in jQuery to get the true opacity of an element? You can, of course, get the element's defined opacity with
$element.css('opacity')
but if, say, its parent has defined opacity 0.5, then the element's true opacity is half of what its defined opacity is. Does jQuery have a function for this? If not, is there an existing plugin?
If there isn't a plugin, could I calculate this myself by iterating over the element's parents until I finally reach the top-most parent, multiplying the CSS opacity each step of the way? Or is there something I'm not taking into account?