I am trying to migrate to rails 3 and UJS with jquery
Now my old code is like this:
page['contact_detail_data'].visual_effect :scrollTo,:duration => 0.5,:offset => -30
Now in jquery I think I must use animate
so I thought of :
page['contact_detail_data'].animate :scrollTo,:duration => 0.5,:offset => -30
But I am unsure of how to give parameters can someone please guide me ?
you can use something like this :
And in javascript