scroll to the appropriate part of the card on transitions