mixin for device box animations