If you find a cool feature on a website you want to reproduce do you just use the in-browser inspector, download the header files, and try to piece it together that way?

Or are there better tools or approaches to get and implement features you find?