Hello
I built a device such as you are asking about using 2 servos.
You can see details hereFreestyle Fountain Nozzle - Digital Media Direct Limited
I do not sell these but merely use my web site to make the design available to interested parties.
Building one requires some engineering equipment...