Can I have frames hidden based on combat stats/who is targeted?
No. Generally we can’t hide and show frames in combat. So while we can make frames transparent, they will still be there and will still be clickable. At some point in the future we may implemented a fairly complicated SecureStateHandler that would allow some of these things to be done based on macro conditionals. But this has not been implemented at this time.