Note that there are some explanatory texts on larger screens.

plurals
  1. USuser1658080
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COThx, if the height of #brief is 1000px in the beginning and I set the duration to 1500, the speed with which the top of the DIV moves is higher than when the height is only 200px because more pixel have to shrink (1500vs200) in the same time (1500ms).But I want that the SPEED not the duration of the animation is always the same,regardless to the DIVs height.I also want the first animation (set bottom to 0) be played with these same SPEED.First #brief's bottom should be set to 0 and then its height to 0, when you just look at the top edge of #brief you see it moving always with the same speed.
      singulars
    2. COThanks, $("#" + item_id).animate({ borderBottomColor: 'green' },800); refers to the DIV which is in the viewport itself - I would need to access the LI-Element which is the "counterpart" of this DIV. I could change the IDs of the LIs to "navfirst", "navsecond", etc. and then $("#nav" + item_id).animate({ borderBottomColor: 'green' },800); but is there better solution? Thanks!
      singulars
    3. COThanks, may I ask one more question: I want to set bottom of a DIV to 0 and afterwards the height of the same div also to 0. At the end the the div should get "display = none;" How can I make the animations (bottom & height = 0) follow each other with the same speed, so that the movement is a smooth one, (the top line of the div should move always at the same speed) when I don't know the height of the DIV because it adapts to the height of it's content? http://pastebin.com/3VYnYyYQ
      singulars
 

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