fix box-shadow bug and improved transition to support transform, add some variables