added different device screen density support for animation