473,503 Members | 3,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make CSS3 { transition } to fade out?

ilya Kraft
134 New Member
Hello,

Straight to my question ))) I added :hover event to one of elements on my site and added css { transition } to it so it now changes text color on hover and has the fade in effect. But when I move mouse from that element I want it to fade out too. visit http://inelmo.com/noluck and hover over title and you will see that it fades in to grey color from red, but if you move mouse away it goes straight to red, how do I make it to fade out?

Here is css I have got so far.

Expand|Select|Wrap|Line Numbers
  1. .NoLuckText:hover {
  2.     color:#666;
  3.     -webkit-transition: all 500ms;
  4.     -moz-transition: all 500ms ease;
  5.     -o-transition: all 500ms ease;
  6.     transition: all 500ms ease;
  7. }
  8.  
May 19 '11 #1
1 4594
MusoFreak200
96 New Member
well ilya Kraft.

unfortuneately IE does not support most if any transitions done by using css3 although you may create a close to it illusion.

try adapting this piece of code:

Expand|Select|Wrap|Line Numbers
  1. .NoLuckText {
  2. color:#7F0000;
  3. -moz-transition: all 1s ease-in-out;
  4. -webkit-transition: all 1s ease-in-out;
  5. -o-transition: all 1s ease-in-out;
  6. transition: all 1s ease-in-out;
  7. cursor: pointer;
  8. }
  9. .NoLuckText:hover {
  10. color:#666;
  11. -webkit-transition: all 500ms;
  12. -moz-transition: all 500ms ease;
  13. -o-transition: all 500ms ease;
  14. transition: all 500ms ease;
  15. }
  16.  
hope that this helps!
dont forget to mark as solved answer if this does solve your problem
Jul 2 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1343
by: ross | last post by:
I am attempting to develop a site that will allow photos to fade in gradually one over another when the link is clicked to show the next picture. I hope that I have described this correctly. Any...
1
1991
by: cens0red | last post by:
Hi. Can someone point me to a script, that will make an image fade-in as the page loads? Been looking for one on google. Found a few, but none that would work in firefox.
2
2046
by: Harshal | last post by:
Hello, I have following html file <html> <head> <script> var flag = true; function LoadNewImage()
2
2179
by: alvarezp | last post by:
I've tried to search the lists for this, and even asked at www-style but I seem not to find anything and they didn't answer. This is about the borders in CSS3. Let's say I'm trying to draw a...
2
2674
by: Emil | last post by:
Hi, if you open the link below and click on "Show Me" and then "Toggle Transition" Button you will see a wonderfull fade in / fade out transition of 2 pictures. ...
2
6554
by: hon123456 | last post by:
Dear all, I got four jpg file, I want to made them fade in / fade out continuously and repeatly in the same table cell of html (e.g. in the same <td></td>) How can I do that in javascript. Please...
1
1989
by: John Smith | last post by:
I'm looking for javascript that will rotate 3-6 jpg images with a fade to white transition between images. I've got a script that will handle the rotation but not the fade. Maybe it can't be...
7
1548
by: Dayo | last post by:
Hello folks. Sorry if this seems a bit silly, I have no experience with this type of code. Here is a fading script for an Image Gallery I am looking to fix. It works with IE and Safari but not...
1
1156
by: Alexander Vasilevsky | last post by:
My question: how to make the transition to dynamically created aspx page. What can advise. http://www.alvas.net - Audio tools for C# and VB.Net developers
12
2576
tpgames
by: tpgames | last post by:
Okay, I admit I was lousy at DIV tags before HTML5. However, 4.01 is leaving us, and I'm making a new site, and wanted to do it right in HTML5/CSS3. Nothing fancy, just wanted... THIS content ...
0
7192
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7064
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6974
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5559
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4665
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.