Solved

How do I use CSS transitions to fade?

Posted on 2010-11-15
2
325 Views
Last Modified: 2012-05-10
I'd like to click a form button and fade in a DIV using "CSS transitions". Could someone tell me how to do this? Also, what browsers support this?

Thanks,
Zumpoof
0
Comment
Question by:zumpoof
2 Comments
 
LVL 4

Expert Comment

by:acashok
ID: 34134350
0
 
LVL 7

Accepted Solution

by:
armchang earned 500 total points
ID: 34134898
You can try adding this to your page css:

 input {  
 color:#000;  
 background:#f00;  
 padding:5px;  
 -webkit-border-radius: 5px;   
     
 -webkit-transition-property:color, background;  
 -webkit-transition-duration: 1s, 1s;  
 -webkit-transition-timing-function: linear, ease-in;  
}   
  
input:hover {  
color:#f00;  
background:#000;  
}  

Open in new window



References:
http://24ways.org/2009/going-nuts-with-css-transitions
http://net.tutsplus.com/tutorials/html-css-techniques/css-fundametals-css-3-transitions/
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question