adding transition while scroll