using x attr rather than transform