Product Docs Help

content_scroll_position

Event direction

Received from Checkout.

Description

This event is used to send the scroll position of the iframe. JSON data includes a integer of the content_scroll_position that should be used. Note that this should be adapted to your own needs, see example.

window.latestScroll = $(document).find( "#checkout" ).offset().top + json.data; $('html, body').animate({scrollTop: $(document).find( "#checkout" ).offset().top + json.data}, 400);
Last modified: 13 September 2024