Simple fading image

Discussion in 'HTML & Website Design' started by adsenseplr, Nov 4, 2009.

  1. #1
    Hi,
    Anyone point me in the way of a simple "fade in" image script - just want my customers logo to fade into a web page and then stay there. Struggling to find one that a numpty like me can understand and install.
    All help much appreciated
    Dickie
     
    adsenseplr, Nov 4, 2009 IP
  2. tobykw13

    tobykw13 Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    tobykw13, Nov 4, 2009 IP
  3. forextrendalerts

    forextrendalerts Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <div id="imagesWrapper">
    <div class="imageWrapper"><img src="images/1.jpg"/></div>
    <div class="imageWrapper"><img src="images/2.jpg"/></div>
    <div class="imageWrapper"><img src="images/3.jpg"/></div>
    </div>
    Hope someone can point me in the right direction
     
    forextrendalerts, Nov 4, 2009 IP
  4. Highwayman

    Highwayman Peon

    Messages:
    117
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Could you not use Flash to do something like this quite simply? Otherwise I'm sure there would be a good JavaScript option out there.
     
    Highwayman, Nov 5, 2009 IP
  5. higreg7

    higreg7 Peon

    Messages:
    469
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Open flash, import your image on stage, resize the stage to your image size, convert your image to a movieclip, and give it an instance name of "image". Create a new layer, and paste this:

    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var fade:Tween = new Tween (image, "_alpha", Strong.easeOut,0, 100,1, true);

    Hit ctrl+enter, you got yourself a fading logo swf :)
     
    higreg7, Nov 5, 2009 IP
  6. forextrendalerts

    forextrendalerts Guest

    Messages:
    132
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    think the reason why your fading gets into disarray at a certain period in time is because your animation takes too long, making it overlap, for some reason, the animation next to it. add that to the fact that you did not set the link : 'cancel' option. so try adding the option like so..

    this.Els.include(new Fx.Morph(item,{duration:5000, transitions:Fx.Transitions.Sine.easeOut, link:'cancel'}));}.bind(this));
     
    forextrendalerts, Nov 5, 2009 IP