The ol.style.FlowLine is a line style to draw LineString with variable colors and widths. This can be used to display flows maps or Sankey diagram on a map.
Look at this example for more information on FlowLine style.