Use Turf to smoothly animate a point along the distance of a line.
See the example: https://docs.mapbox.com/mapbox-gl-js/example/animate-point-along-route/
Uses the interpolate expression with a cubic bezier curve expression to style bathymetry data.
See the example: https://docs.mapbox.com/mapbox-gl-js/example/style-ocean-depth-data/