Remove Road taxes at the pump

The shift to the electric car has reduced the revenue collected in gasoline taxes. The electric car last time i noticed use the roads just like traditional cars. It is time to collect a road use tax from all vehicles. The method that i see is to eliminate the fuel tax at the pump and place a yearly fuel tax on the registration of the car based on weight of vehicle. This would be one method of fairness.