473,765 Members | 1,957 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 4619
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
1354
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 suggestions please? Perhaps a page that is doing this at this time? I appreciate this newsgroup.Thank you, Dick Ross
1
2006
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
2074
by: Harshal | last post by:
Hello, I have following html file <html> <head> <script> var flag = true; function LoadNewImage()
2
2196
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 star-shaped border, a la "Greatest offer!", where the border is visually no more than an broken line. Something like:
2
2696
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. http://msdn.microsoft.com/library/default.asp?url=/workshop/author/filter/reference/filters/fade.asp I want to have the same effect in Visual C++, dosen't matter with / or without GDI+, but no .NET. I have a simple dialog with some controls and I
2
6570
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 suggest answer, and if you like, please suggest website contains the source code. Thanks.
1
2003
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 done with JS? Thanks!
7
1577
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 with Firefox and Netscape. Actually, when I say it doesn't work, I mean you have to refresh the page before the fade happens and once that is done once, it works on that image. for that session. Here is the code: // Fade In Script
1
1168
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
2598
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 THIS DOES NOT WORK! Recipe: About this recipe, and the lovely blurbage that makes people want to know more. I see it as rattling garbage`.
0
9399
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10161
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9833
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.