Here is simple example of what I mean, When I move the cursor the mapbox-gl container resizes which creates jerky animations. Please help.
import plotly.express as px
px.set_mapbox_access_token("token")
df = px.data.carshare()
df=df.sort_values("peak_hour")
fig = px.scatter_mapbox(df, lat="centroid_lat", lon="centroid_lon",color="peak_hour", size="car_hours",animation_frame="peak_hour",animation_group="car_hours",
color_continuous_scale=px.colors.cyclical.IceFire, size_max=15, zoom=10)
fig.show()