javascript - Apply CSS3 transition on change of a different property -


i know css3 transitions can tell apply change property when it's changed. i'm wondering if there's way same thing, when different property changed.

for example, classic tutorial example on hover:

-- css -- #div1 { opacity: 0.2; transition: opacity 1s; } #div1:hover { opacity: 1; }  -- html -- <div id="div1" style="width:200px;height:200px;background-color:#000;"></div> 

what i'm hoping apply opacity transformation this, when different property changed. specifically, separate library have no control on showing/hiding element normal way, using javascript set display property. i'd hook change somehow force fade in , out using opacity, without tapping in javascript that's making call.

is there css3 magic can make happen?

(if you're wondering, it's using asp.net ajax of funky toolkits , extenders, can't dig script - if regular jquery or simple javascript library making calls, easier work with).


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -