fadeIn does not work when css transparency defined
I tried the following code and it seemed like fadeIn() didn't work when the image has trasparency defined for it. i tested with IE8. Is this intended?
- <html>
- <head>
- <style>
- .style1 {display:block; opacity:0.4; filter:alpha(opacity=10); width: 200; height: 200}
- .style2 {display:none; width: 200; height: 200}
- </style>
- <script type="text/javascript" src="jquery-1.4.2.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#alert').click(function() {
- //uncomment next two lines, fadeIn() kicked as transparency was removed
- //$(this).removeClass("style1");
- //$(this).addClass("style2");
- $(this).fadeIn(10000);
- });
- });
- </script>
- </head>
- <body>
- <img id="alert" class="style1" src="1.jpeg">
- </body>
- </head>