Solved

How do I use CSS transitions to fade?

Posted on 2010-11-15
2
323 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

776 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