JS: check css transitions