Solved

How do I use CSS transitions to fade?

Posted on 2010-11-15
2
326 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
XML loaded in a form with dropdown 6 49
Angular2 remove duplicates 11 20
Difference between Leaflet and MapBox? 5 42
How does this modal gets closed? 6 38
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article discusses how to implement server side field validation and display customized error messages to the client.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

738 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