I just found this old question when trying to solve the same issue myself. The answer is:
<l-rectangle class-name="pulse" ...
That passes the className argument to the leaflet constructor which creates the element.
className