javascript - Start/stop fixed position HTML JS -
i have div
positioned: relative , when scrolled down become fixed. however, start can't seem code work in way start 1 point , stop @ point.
here example airbnb.
https://www.airbnb.co.uk/rooms/13402355?s=9usqc8q_ (right handside booking)
maybe of have done already? appreciate help!
jsfiddle https://jsfiddle.net/cyfb6s8t/1/
thank time!
you adding class called "fixed". that's not in css linked.
also, consider using .css() make few modifications: .css("position": "fixed", "top": "0", "left": "0")
i believe work.
Comments
Post a Comment