This animated texture .mcmeta generator will cover most of your needs; it supports most properties excluding frame index and frame time.
If you need any help with a property, you may always hover the property name to display a useful tootip with extra information.
Additionally, the tags "R" and "O" next to the titles will declare if the property is required or optional.
1. Upload your texture by clicking on "Select Image".
2. Define the dimensions of an individual frame using the "Frame Width" and "Frame Height" fields.
3. Specify a framerate using the "Framerate" field. Remember the time is in ticks and stands for per-frame-time.
4. Now you can preview your texture on the right side box. Note that it doesn't preview interpolation.
5. Fill the "Texture Name" field with the name of the texture you want to animate. (example: cobblestone.png).
6. Click "Generate & Download" to get your file.
7. Paste the downloaded file in the same location the texture image is.