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 8250499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T23:54:42+00:00 2026-06-07T23:54:42+00:00

what I mean in the title is, no matter which container is on top

  • 0

what I mean in the title is, no matter which container is on top (is visible) in the fade-style animation, the href in the “onclick” is always the same.

here is the html

<div id="teaserslider">
                <ul>
                    <li>
                        <section id="container_1">
                            <div class="head gradient-top loading" onclick="document.location.href='container1_detail.html'">
                                <div>
                                  <!-- Content -->
                                </div>
                            </div>

                        </section>
                    </li>
                    <li class="animation">
                        <section id="container_2">
                            <div class="head gradient-top loading" onclick="document.location.href='container2_detail.html'">
                                <div>
                                  <!-- Content -->
                                </div>
                            </div>

                        </section>
                    </li>
                </ul>
            </div>

here is the css

#teaserslider{
   height: 100px;
   margin-bottom: 6px;
}

#teaserslider li {

   position: absolute;

   list-style: none;
   -webkit-transition: opacity 1s ease-in-out; 
}

@-webkit-keyframes fadeout{

0% {
    opacity:1;
}
45% {
    opacity:1;
}
55% {
    opacity:0;
}
100% {
    opacity:0;
}
}

#teaserslider li.animation {
   -webkit-animation-name: fadeout;
   -webkit-animation-timing-function: ease-in-out;
   -webkit-animation-iteration-count: infinite;
   -webkit-animation-duration: 5s;
   -webkit-animation-direction: alternate;
   -webkit-transform: translateZ(0);//hardware acceleration

}

you may have noticed, I only use the webkit engine because this code runs inside a Phonegap Application for iOS.
No matter which container is showed currently, when I click the container I always get to “container2_detail.html”. Anyone know how to solve this? thanks.

  • 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-07T23:54:43+00:00Added an answer on June 7, 2026 at 11:54 pm

    I tried this and it seems to work

    @-webkit-keyframes fadeout{
    
    0% {
        opacity:1;
        z-index: 1;
        display: block;
    }
    45% {
        z-index: 1;
        display: block;
        opacity:1;
    }
    55% {
        z-index: -1;
        display: none;
        opacity:0;
    }
    100% {
        z-index: -1;
        display: none;
        opacity:0;
    }
    

    }

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

Sidebar

Related Questions

Not sure it is clear from this question title what I mean, so here
Am not sure my title is explicit enough. here is what i mean.I'm developing
The title doesn't quite capture what I mean, and this may be a duplicate.
The title is in the question (EDIT: :P I mean the question is in
Possible Duplicate: What does new() mean? Like in title. I wonder what this syntax
As per the title, is this possible? By tri-state, I mean the parent node
I mean I have this code: <script> $(document).ready( function() { $('html, body').animate({ scrollTop: $(.error).offset().top
I don't mean for the title to be derogatory, but this is a rather
I hope the title doesn't sound too subjective; I absolutely do not mean to
Is there any way to customize Java application's title bar? I don't mean app

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.