Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery app problem. Is this a glitch or incorrect coding?
    primarykey
    data
    text
    <p>I've got into a rather simple, yet annoying problem.</p> <p>I'm trying to create a kind of "pick a date" calendar, but in carousel style, just like those image sliders.</p> <p>Once the user clicks on a date, the <code>&lt;div&gt;</code> should scroll to the center, and have its CSS changed, animated.</p> <p>I've found this image slider which is exactly what I need: <a href="http://opiefoto.com/articles/photoslider" rel="nofollow">http://opiefoto.com/articles/photoslider</a> (<strong>Demo at the bottom</strong>)</p> <p>All I wanted to do, is, take off the big image and the play / pause button, and change the CSS a little bit, so far, I've managed to do THIS: <a href="http://chadascinco.net/photoslider/" rel="nofollow">http://chadascinco.net/photoslider/</a></p> <p>People with keen eye for glitches probably already had noticed that... when you click on a thumbnail, and then click on another, the previous one <strong>keeps its old height</strong>, still, you can see it "flicking" like something is forcing it back to that height.</p> <p>And that's my problem.</p> <p>If you check using firebug or something similar, you'll notice that the height GOES to 66px, but goes back to 121px just after that.</p> <p>And now, for something weird, if I take off the "top" value change, the height works perfectly. It grows and go back exactly as I need. But if I put it back... damn, there we go, height glitch.</p> <p>I've tried to contact the author through email, but it has been 3 days and I've gotten no reply back.</p> <p>And here I ask ya all for a share of knowledge, I'm a very newcomer with JavaScript and jQuery, so it might be also a problem in my code. I just tried to use basic programming logic.</p> <p>The js responsible is "photoslider.js" and if you check for "FELIX Note", you'll find notes in every single part where i made any changes. Any other comments are original from the author.</p> <p>The lines where the transition works are from 265 to 287.</p> <p>If anything I said is confusing, I'd be glad to be more accurate.</p> <p>If you guys also need to check the original code, you can check it here: <a href="http://chadascinco.net/photoslideroriginal" rel="nofollow">http://chadascinco.net/photoslideroriginal</a></p> <p>Also, if you know any other application that works like what I need, I'd be most thankful to know.</p> <p>Thank you all once again.</p> <p><strong>BRAND NEWS EDIT</strong>: I've found one interesting fact: if you check the lines i mentioned, you'll notice 3 animation calls.</p> <p>No matter what you do, if you put the same CSS property on the <strong>SECOND</strong> call for both active and inactive divs, it'll flick and cause this glitch. I've tried changed to "background-color" instead of height, changing from black to white and backwards.</p> <p>Here's what happened: When i load the page, only the active one is black. Good. But when i click another, this one becomes black, and the <strong>PREVIOUS</strong> one tries to become white, but is forced to become black again. i wonder, why only the Second call? If it was the first, or the last, or every of them, alright, but... only the second? Weird.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload