Reputation: 3661
What I'm trying to do is,
class="new"
div to the top of .inside
div when you
scroll down.http://jsfiddle.net/tt13/5CxPr/13/
Upvotes: 0
Views: 1694
Reputation: 8477
Here is a fiddle of what you want to achieve. Use prependTo
instead of appendTo
and use position:absolute;top:0;
for keeping it on the top
Upvotes: 4
Reputation: 119837
the code is too long to put here but here are key notes:
.prependTo()
Upvotes: 1
Reputation: 8710
use prependTo()
instead of appendTo()
http://jsfiddle.net/uday99/5CxPr/20/
Upvotes: 1