html - CSS Smooth fade and out transition (including text) -


I have a simple hover effect that changes text and background What would I want to know, if the fat effect is slowed down One possible way ... I'm sure you can use transition CSS, but I have very little knowledge on how to use it

(code is not complete code and works correctly Does not (but should suffice))

Here's HTML:

  & lt; Div id = "ourproductsleft" class = "grid_3 alpha" & gt; & Lt; H4 & gt; Mail & lt; / H4 & gt; & Lt; Img class = "answer" src = "img / index / body / our products / mail_accaped." / & Gt; & Lt; P class = "comment" & gt; Packed with features and supported by our first-class technical support, data connectivity email hosting is a great choice for both personal and business users. & Lt; / P & gt; & Lt; Br> & Lt; Br> & Lt; P class = "comment2" & gt; & Lt; A href = "& lt;% = url_prefix%> hosting.HTML" & gt; Our & lt; U & gt; Mail & lt; / U & gt; For more information on service & Lt; / A & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt ;! - ourproductsleft end of class 3 - & gt;  

Here's the CSS

  / * background for each div * / #ourproductsleft {background: # F2F7FA; /*background-image:url(../img/index/body/ourproducts/grey.png); Background-Repeat: Repeat; * / Border-radius: 0 pixels; -Move Box-Shadow: 0 0 5px #ccc; -WebKit box-shadow: 0 0 5px #ccc; Box-Shadow: 0 0 5px #ccc; } / * Green background for each div * / #ourproductsleft: hover {background-image: url (../img/ index/ body / ourproducts / light_blue_background_pattern.jpg); Background repeat: repeat; } / * Do not display the original (mail, domain etc.) text on the hover view * / #ourproductsleft: hover .replies {display: none; } / * Keep display inline for main text on hover * / #ourproductsleft: hover .comment {display: inline; Opacity: 1; }  

I have also created

Actually, you should use the opacity with the change instead of display: none because later it is not 'transitionable', there are other options depending on the option of the next Types are under the influence, but this is the basics.

HTML

  & lt; Div id = "ourproductsleft" class = "grid_3 alpha" & gt; & Lt; H4 & gt; Mail & lt; / H4 & gt; & Lt; Img class = "answer" src = "img / index / body / our products / mail_accaped." / & Gt; & Lt; P class = "comment" & gt; Packed with features and supported by our first-class technical support, data connectivity email hosting is a great choice for both personal and business users. & Lt; / P & gt; & Lt; P class = "comment2" & gt; & Lt; A href = "& lt;% = url_prefix%> hosting.HTML" & gt; Our & lt; U & gt; Mail & lt; / U & gt; For more information on service & Lt; / A & gt; & Lt; / P & gt; & Lt; / Div & gt; & Lt ;! - end of ourproductsleft class 3 - & gt;  

CSS

  / * Background for each Div * / #ourproductsleft {background: # F2F7FA; Range radius: 0 pixels; -Move Box-Shadow: 0 0 5px #ccc; -WebKit box-shadow: 0 0 5px #ccc; Box-Shadow: 0 0 5px #ccc; } #HomeProducts are skipped. Com Mant, #ourproductsleft .replies {opacity: 0; Transition: Ease of Opacity 1s; } #Move Products: Left: Hover Comments, #indproductsand: hover .rayz {Opacity: 1; }  

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -