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

  • SEARCH
  • Home
  • 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 8303347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:30:21+00:00 2026-06-08T17:30:21+00:00

I’m using the jQuery Cycle plugin for a slider – I need to make

  • 0

I’m using the jQuery Cycle plugin for a slider – I need to make some fadeIn fadeOut effect inside each slides.
Has any one had any experience with this? Unfortunately I am quite
useless at JavaScript creation, and I have not been able to find any great support documentation.
Here is a example
And my function code is below.

$('#yslider ul').cycle({
           fx:     'fade',
           speed:   'slow',
           timeout: 1000,
           before: first,
           after:    second,
           pager:    '#number',
           pause: 1
        });
        function first(){
            $('.left').fadeOut(800).delay(100).animate({opactiy: 0.5 });
            $('.middle').delay(800).fadeOut(1300).animate({opactiy: 1.0 });
            $('.right').delay(2500).animate({right:'-1980px'}, 700);
        }
        function second(){
            $('.left').fadeIn(1000).delay(300).animate({opactiy: 1.5 });
            $('.middle').fadeIn(1500).delay(500).animate({opactiy: 2.5 });
            $('.right').delay(2500).animate({right: '-26px'}, 700);
        }
  • 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-08T17:30:25+00:00Added an answer on June 8, 2026 at 5:30 pm

    all you need is call before: option of cycle.. onBefore initialize your animations and put some delay and then finalize your animation.
    i put eq() to perform only current ‘li’ because you are using same class for all sliding tabs.

    $(document).ready(function(){
        $('#yslider ul').cycle({
           fx:     'fade',
           speed:   'slow',
           timeout: 10000,
           before: pehla,
           pager:   '#number',
           pause: 1
        });
    });
    var sliderSize = $('#yslider ul li').size();
    function pehla(){
        if(i == sliderSize)
            i = 0;
        $('.left:eq('+i+')').fadeIn(800, function(){
            $('.middle:eq('+i+')').fadeIn(1300, function(){
                $('.right:eq('+i+')').animate({right:'0px'}, 700, function(){
                    $('.right:eq('+i+')').delay(4400).animate({right: '-1980px'}, 200, function(){
                        $('.middle:eq('+i+')').fadeOut(1300, function(){
                            $('.left:eq('+i+')').fadeOut(800);
                            i++;
                        });
                    });
                });
            });
        });
    }
    

    also you’ll need to edit some of your css

    .left{left:0;display:none;}
    .middle{ left: 13px;top: -75px;display:none;}
    .right{right:-1980px;}
    

    set timeout as per your overall animation duration + delay in each slide
    here i set 10000 ms = starting animation (800 + 1300 + 700) + delay(4400) + final animation(900+1300+800)

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

Sidebar

Related Questions

I am reading a book about Javascript and jQuery and using one of the
I have thousands of HTML files to process using Groovy/Java and I need to
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and

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.