Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7824957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T08:46:33+00:00 2026-06-02T08:46:33+00:00

I have a working jquery image carousel that I was building. It’s mostly finished

  • 0

I have a working jquery image carousel that I was building. It’s mostly finished (just the increase button works): http://jsfiddle.net/2C8fy/7/

The only problem I’m facing is that when the image get appended it does not fade in. It just appears. I tried adding another slot on the right that was 0 opacity and then animating it to fade in but that didn’t seem to work either. How can I animate that right slot image to make it appear like it is fading in? Here’s what I have right now:

$('#basic_div').animate({          //slides the div with the images in it to the left.
            left: '-=40px'
        }, 300, function() {

        });

        left.animate({             //fade out effect for the left most image
            opacity: 0
        }, 300, function() {
            left.remove();         //gets rid of left most image after it becomes invisible.
            $('#basic_div').css({
                left: '0px'        //resets the div that contains the images
            });
        });


            middle.attr('id', 'left_slot');       //changes ids
            right.attr('id', 'middle_slot');


            $("#basic_div").append(newImgSL);
            newImgSL.attr('id', 'right_slot');
            newImgSL.animate({
                opacity: 100   //I thought this would make it fade in, but it still just appears.
            }, 300);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T08:46:33+00:00Added an answer on June 2, 2026 at 8:46 am

    To fadeIn() an image, start with display: none or .hide() and opacity: 1.

    Or you can set the initial opacity to 0 and use fadeTo(3000, 1).

    fadeIn() expects the image to be initially display: none with the opacity set to the final opacity. It will then remember the final opacity, set the opacity to 0, make the image visible and then start animating the opacity.

    fadeTo() just starts at the current opacity and fades to the newly specified opacity.

    So, in your case, you could do this:

    // set id and initial opacity
    newImgSL.attr('id', 'right_slot').css("opacity", 0);
    // put it into the page
    $("#basic_div").append(newImgSL);
    // fade to visible
    newImgSL.fadeTo(300, 1);    
    

    Also, remember that opacity is a decimal number from 0 to 1.

    Your code doesn’t show where newImgSL comes from. Remember that you also need to make sure that the image has finished loading before trying to fade it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working bootstrap carousel. And I just realized that images are being
I have created jquery image slider and it is working good. However i have
I'm working with Jquery in Drupal. I have sets of four blocks that all
I am working with jquery. I have a main image. When I place the
I'm working on a Javascript/jQuery powered image preloader, and have hit a bit of
I have been working on a template using almost all jquery/javascript. Mostly I am
I'm working with Javascript/jQuery and CSS to have a "background" image of a map
So I have working code that animates a BG image via a plugin. This
I have the following question: I am working on a JQuery script that turns
I have the following working code: http://jsfiddle.net/NtHwN/4/ It will deduct the number that is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.