The code in the below link works fine to display sticky Column headings
http://www.enjoysharepoint.com/Articles/Details/steps-to-freeze-header-row-for-title-in-sharepoint-2013-21223.aspx
How to convert this code to display sticky row headings. please explain the code

Yogendra BhardwajRank #2,141 · 666 reputationPosted Apr 2, 2017, 7:06 PM EDT
Manpreet SinghRank #15 · 50.7K reputationPosted Apr 26, 2017, 12:29 PM EDT
[Microsoft MVP]