The world is rapidly moving away from fossil fuels as electric vehicles and other clean machines take over.