css3 - CSS Transition Delay on Value Change -


riddle me this:

i have empty span value waiting validation "confirmed" text string. text string needs automagically fade away after second or 2 (without user interaction). how can done pure css?

since there no user initiated trigger :hover, best set rule based on exact text string value? seems inflexible. how set when second or 2 delay starts?

this not seam work...

<span class="validationtextstring" value=""></span>  .validationtextstring[value=""] {opacity: 1.0; transition: opacity 0.3s linear 2s;}  .validationtextstring[value="confirmed"] {opacity: 0.0;} 

thanks help.

--update--

the above rule work. once - since value doesn't change after populated. there generic css value trigger on change rather specific value? or way reset rule after triggered?

thanks again.

it doesnt seem me possible pure css. because css called @ load time, has no way check if value 'confirmed'. see fiddle, text box containing 'confirmed' @ load time disappears, other not, if type 'confirmed'.

also, need '$' signs this:

.validationtextstring[value$=""] {opacity: 1.0; transition: opacity 0.3s linear 2s;} 

unfortunately, not work when using :hover or :active this:

.validationtextstring:hover[value$=""]     {opacity: 1.0;     transition: opacity 0.3s linear 2s;} 

again box containing 'confirmed' @ load disapper on hover, blank boxes 'confirmed' inputted still not disappear.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -