I assume that the shaft comment was intended to be humourous, but sure... why wouldn't it work just as well (and be just as complex) as with a gas engine?
It doesn't matter much how the motor is mounted - the orientation is important to the effect of motor inertia, but makes no difference to drive torque reaction (something still turns that shaft). Where it is mounted does matter, to how the torque reaction is transmitted to the bike (how it affects the suspension).
Harley-Davidson's Project LiveWire bike mounts the motor longitudinally, but then turns the drive 90 degrees for a belt drive to the wheel... it is a Harley, after all. Seems like the worst possible technical design.... it is a Harley, after all.
It doesn't matter much how the motor is mounted - the orientation is important to the effect of motor inertia, but makes no difference to drive torque reaction (something still turns that shaft). Where it is mounted does matter, to how the torque reaction is transmitted to the bike (how it affects the suspension).
Harley-Davidson's Project LiveWire bike mounts the motor longitudinally, but then turns the drive 90 degrees for a belt drive to the wheel... it is a Harley, after all. Seems like the worst possible technical design.... it is a Harley, after all.