bonsoir j'ai un souci mon image du premier plan n'est pas transparent alors que j'ai mis png
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
le html
 
     <div id="animation">
            <p id="avion"></p>
            <img  id="palmier" src="palmier.png"/></a>
           </div>
 
 
 
<script type='text/javascript'>
    var $j = jQuery.noConflict();
$j(function(){
 
function deplacement(){
  var avion = $j('#avion'),
  max = 10; // unité : in
  if(parseInt(avion.css('marginLeft'),10)<=max) {
    avion.css('marginLeft',0);
  }
  $j("#avion").animate({
    marginLeft: "-=1650px",// longeur de gliss de l'animation
  },18000, deplacement);
}
deplacement();
});
</script>
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
 
css
 
 
#animation
{
   background:url('image/sable.png');
   position:relative;
   height:350px;
   width:1000px;
}
 
 
#animation #avion
{
 
     position: absolute;
     background:url('image/avion.png') no-repeat;
     left:1000px;
width:2000px;
    height:150px;
    width:800px;
    z-index: 20;
 
}
 
 
img#palmier
{
    position:absolute;
    left:0;
    right:0;
    background:url('image/palmier.png') no-repeat;
    height:350px;
    width:1000px;
    z-index: 30;
}
/* fin entête animation */
mon problème c'est qu'il ne reconnais pas la transparence
je vous remercie d'avance pour votre réponse .
si quelqu'un a une idée