A dynamically moving div, such as a Yelp displacement map

I am trying to implement something very similar to the Yelp moving map. Cm:

http://www.yelp.com/search?find_desc=restaurants&ns=1&find_loc=mountain+view%2C+ca

It basically starts somewhere in the middle of the page, but if you scroll down far enough that you cannot see it, it will also drop. What is the best way to do this in javascript? My application is in GWT, but I think I will have to use native js to achieve this effect.

Thanks Jean

+3
source share
1 answer

- . body.scroll , javascript. Google 'javascript scroll event',

0

Source: https://habr.com/ru/post/1745879/


All Articles