fix: config with object

add: callback for transition end, gives opened state in first argument