Plotly animation Line chart

I am trying to construct a graph that can be played with a timeline animation. The data is for a yield curve and I want to be able to play it going by date. This is the data and the graph I want to have play through for each day but I am having difficulty figuring out how to create the animation as all the examples use different graphs and are more complex.

import pandas as pd
import pandas_datareader as dr
import as px

yield_curve = dr.get_data_fred([‘DGS1MO’,‘DGS3MO’,‘DGS6MO’,‘DGS1’,‘DGS2’,‘DGS3’,‘DGS5’,‘DGS7’,‘DGS10’,‘DGS20’,‘DGS30’],start=‘2000-01-02’)`