Added transform method for functions, needed for @floatinterval