Updates the data-config key and fixes CSS transitions