I'm new to the forum and am relatively new to HTML coding on the whole-- so please be patient with me if I have trouble understanding
Anyway-- I'm working on building a website with a template I bought. Here is the link to the theme for reference.
The problem in question is the slider/slideshow with the tooltip header. The tooltip features a nifty little animation which responds to your mouse hovering. Anyway, within the code, there is an <a href> wrapped around the slider image.
However, when you go to the website and click on the slider image, it directs you to the slideshow's fifth image's href-- there are 5 total images in the slideshow.
I did a bit of testing and I cannot figure anything out. One suspicion I had and I saw this only a few times was that the linking was correct ONLY WHEN the animation for the tooltip was activated (e.g., I hovered my mouse over it to cue the animation).
Code below...the top part is the text/css which defines the slider properties. Bottom portion are the images and tooltips.
CODE
<!-- slider begins-->
<style media='screen' type='text/css'>
.container {
margin: 0 auto;
overflow: hidden;
width: 100%;
margin-top: -21px;
margin-bottom: -142px;
}
#content-slider {
height: 493px;
width: 100%;
}
#slider {
background: none repeat scroll 0 0 #000000;
height: 600px;
overflow: visible;
position: relative;
width: 100%px;
}
#mask {
height: 600px;
overflow: hidden;
}
#slider ul {
margin:0;
padding:0;
position:relative;
}
#slider li {
width:100%;
height:600px;
position:absolute;
top:-325px;
list-style:none;
}
#slider li.firstanimation {
-moz-animation:cycle 25s linear infinite;
-webkit-animation:cycle 25s linear infinite;
}
#slider li.secondanimation {
-moz-animation:cycletwo 25s linear infinite;
-webkit-animation:cycletwo 25s linear infinite;
}
#slider li.thirdanimation {
-moz-animation:cyclethree 25s linear infinite;
-webkit-animation:cyclethree 25s linear infinite;
}
#slider li.fourthanimation {
-moz-animation:cyclefour 25s linear infinite;
-webkit-animation:cyclefour 25s linear infinite;
}
#slider li.fifthanimation {
-moz-animation:cyclefive 25s linear infinite;
-webkit-animation:cyclefive 25s linear infinite;
}
#slider .tooltip {
background: rgba(0,0,0,0.7);
width: 500px;
height: 60px;
position: relative;
bottom: 342px;
left: 360px;
-moz-transition: all 0.3s ease-in-out;
-webkit-transition: all 0.3s ease-in-out;
}
#slider .tooltip h1 {
color:#fff;
font-size:24px;
font-weight:300;
line-height:60px;
padding:0 0 0 20px;
text-align: center;
}
#slider li#first:hover .tooltip,
#slider li#second:hover .tooltip,
#slider li#third:hover .tooltip,
#slider li#fourth:hover .tooltip,
#slider li#fifth:hover .tooltip {
left:0px;
}
/* PROGRESS BAR */
.progress-bar {
position: relative;
top: -118px;
width: 680px;
height: 11px;
background: #000;
-moz-animation: fullexpand 25s ease-out infinite;
-webkit-animation: fullexpand 25s ease-out infinite;
}
/* ANIMATION */
@-moz-keyframes cycle {
0% { top:0px; }
4% { top:0px; }
16% { top:0px; opacity:1; z-index:0; }
20% { top:325px; opacity:0; z-index:0; }
21% { top:-325px; opacity:0; z-index:-1; }
92% { top:-325px; opacity:0; z-index:0; }
96% { top:-325px; opacity:0; }
100%{ top:0px; opacity:1; }
}
@-moz-keyframes cycletwo {
0% { top:-325px; opacity:0; }
16% { top:-325px; opacity:0; }
20% { top:0px; opacity:1; }
24% { top:0px; opacity:1; }
36% { top:0px; opacity:1; z-index:0; }
40% { top:325px; opacity:0; z-index:0; }
41% { top:-325px; opacity:0; z-index:-1; }
100%{ top:-325px; opacity:0; z-index:-1; }
}
@-moz-keyframes cyclethree {
0% { top:-325px; opacity:0; }
36% { top:-325px; opacity:0; }
40% { top:0px; opacity:1; }
44% { top:0px; opacity:1; }
56% { top:0px; opacity:1; }
60% { top:325px; opacity:0; z-index:0; }
61% { top:-325px; opacity:0; z-index:-1; }
100%{ top:-325px; opacity:0; z-index:-1; }
}
@-moz-keyframes cyclefour {
0% { top:-325px; opacity:0; }
56% { top:-325px; opacity:0; }
60% { top:0px; opacity:1; }
64% { top:0px; opacity:1; }
76% { top:0px; opacity:1; z-index:0; }
80% { top:325px; opacity:0; z-index:0; }
81% { top:-325px; opacity:0; z-index:-1; }
100%{ top:-325px; opacity:0; z-index:-1; }
}
@-moz-keyframes cyclefive {
0% { top:-325px; opacity:0; }
76% { top:-325px; opacity:0; }
80% { top:0px; opacity:1; }
84% { top:0px; opacity:1; }
96% { top:0px; opacity:1; z-index:0; }
100%{ top:325px; opacity:0; z-index:0; }
}
@-webkit-keyframes cycle {
0% { top:0px; }
4% { top:0px; }
16% { top:0px; opacity:1; z-index:0; }
20% { top:325px; opacity:0; z-index:0; }
21% { top:-325px; opacity:0; z-index:-1; }
50% { top:-325px; opacity:0; z-index:-1; }
92% { top:-325px; opacity:0; z-index:0; }
96% { top:-325px; opacity:0; }
100%{ top:0px; opacity:1; }
}
@-webkit-keyframes cycletwo {
0% { top:-325px; opacity:0; }
16% { top:-325px; opacity:0; }
20% { top:0px; opacity:1; }
24% { top:0px; opacity:1; }
36% { top:0px; opacity:1; z-index:0; }
40% { top:325px; opacity:0; z-index:0; }
41% { top:-325px; opacity:0; z-index:-1; }
100%{ top:-325px; opacity:0; z-index:-1; }
}
@-webkit-keyframes cyclethree {
0% { top:-325px; opacity:0; }
36% { top:-325px; opacity:0; }
40% { top:0px; opacity:1; }
44% { top:0px; opacity:1; }
56% { top:0px; opacity:1; z-index:0; }
60% { top:325px; opacity:0; z-index:0; }
61% { top:-325px; opacity:0; z-index:-1; }
100%{ top:-325px; opacity:0; z-index:-1; }
}
@-webkit-keyframes cyclefour {
0% { top:-325px; opacity:0; }
56% { top:-325px; opacity:0; }
60% { top:0px; opacity:1; }
64% { top:0px; opacity:1; }
76% { top:0px; opacity:1; z-index:0; }
80% { top:325px; opacity:0; z-index:0; }
81% { top:-325px; opacity:0; z-index:-1; }
100%{ top:-325px; opacity:0; z-index:-1; }
}
@-webkit-keyframes cyclefive {
0% { top:-325px; opacity:0; }
76% { top:-325px; opacity:0; }
80% { top:0px; opacity:1; }
84% { top:0px; opacity:1; }
96% { top:0px; opacity:1; z-index:0; }
100%{ top:325px; opacity:0; z-index:0; }
}
/* ANIMATION BAR */
@-moz-keyframes fullexpand {
0%, 20%, 40%, 60%, 80%, 100% { width:0%; opacity:0; }
4%, 24%, 44%, 64%, 84% { width:0%; opacity:0.3; }
16%, 36%, 56%, 76%, 96% { width:100%; opacity:0.7; }
17%, 37%, 57%, 77%, 97% { width:100%; opacity:0.3; }
18%, 38%, 58%, 78%, 98% { width:100%; opacity:0; }
}
@-webkit-keyframes fullexpand {
0%, 20%, 40%, 60%, 80%, 100% { width:0%; opacity:0; }
4%, 24%, 44%, 64%, 84% { width:0%; opacity:0.3; }
16%, 36%, 56%, 76%, 96% { width:100%; opacity:0.7; }
17%, 37%, 57%, 77%, 97% { width:100%; opacity:0.3; }
18%, 38%, 58%, 78%, 98% { width:100%; opacity:0; }
}
<!-- Images -->
</style>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<div class='container'>
<div id='content-slider'>
<div id='slider'>
<div id='mask'>
<ul>
<li class='firstanimation' id='first'>
<a href='#'>
<img alt='Shop' src='http://www.shindiristudio.com/allaroundwp/wp-content/uploads/2013/08/36.jpg'/>
</a>
<div class='tooltip'>
<h1>Welcome To Montric</h1>
</div>
</li>
<li class='secondanimation' id='second'>
<a href='#'>
<img alt='Shop' src='http://www.shindiristudio.com/allaroundwp/wp-content/uploads/2013/08/46.jpg'/>
</a>
<div class='tooltip'>
<h1>Lets Go Shopping</h1>
</div>
</li>
<li class='thirdanimation' id='third'>
<a href='#'>
<img alt='Camera' src='http://www.shindiristudio.com/allaroundwp/wp-content/uploads/2013/08/8.jpg'/>
</a>
<div class='tooltip'>
<h1>Photography</h1>
</div>
</li>
<li class='fourthanimation' id='fourth'>
<a href='#'>
<img alt='Fast' src='http://www.shindiristudio.com/allaroundwp/wp-content/uploads/2013/08/3-11.jpg'/>
</a>
<div class='tooltip'>
<h1>High Quality And Fast</h1>
</div>
</li>
<li class='fifthanimation' id='fifth'>
<a href='#'>
<img alt='Photography' src='http://www.shindiristudio.com/allaroundwp/wp-content/uploads/2013/08/8.jpg'/>
</a>
<div class='tooltip'>
<h1>Photography</h1>
</div>
</li>
</ul>
</div>
<div class='progress-bar'/>
</div>
</div>
</div>
</b:if>
<!-- slider ends -->