How to control the two transparent sides using empty?
One way would be to use drivers. This quick setup uses the global-x value of the empties and transferes it to the position of the colorramp sliders.
This is not the most elegant way to do this, because of the usage of global transformation values.