First thing, this is an old way to add the variant description.
To add description with variant you can use variant metafield.
Once you will add it then within the code you have to call it ( you can call all at same time within the loop ) and then with the help of JS show/hide a/to the selected variant.