kombai / freewall

Freewall is a cross-browser and responsive jQuery plugin to help you create grid, image and masonry layouts for desktop, mobile, and tablet...
MIT License
1.85k stars 375 forks source link

get objects new position #112

Closed bknill closed 10 years ago

bknill commented 10 years ago

Hi,

Is it possible to find where on the document an object has been placed so I can scroll to it?

$('#div').css(''left") isn't returning anything

kombai commented 10 years ago

Hi, You must assign an id for the block you want to scroll. example:

<div id="hai"></div>

then after done (using onComplete callback) you have:

$("#hai").css("left")

Best

bknill commented 10 years ago

Hi thanks. Freewall seems to overwrite the Div ID, so impossible to find it that way. I put the ID as a class and that works.