Well problem is that when you animate element above target and reduce height, it offsets scrollTo's target location. So assuming you don't really need to do animation as it is not visible anyway, you can use following method so you won't see any jumps.   See the Pen ZvKbJX?editors=0010 by Sahil89 (@Sahil89) on CodePen   Otherwise you will just have to constantly update target using onUpdate callback so you won't see any jumps, but still it will
    • Like
    5