Rotate polygons around edge (animation nodes)
The Extract Polygon Transforms node can be used to generate transformation matrices that can be used as the pivot of the Offset Polygons node. In which case, the first edge in the polygon is used.



Note that you should switch to local axis transformation in the advanced node settings of the Offset node.