support passing a parameter :id and change animation speed depending on the situation