What is the will-change property, and how does it optimize performance?

will-change tells the browser to optimize certain properties that will change, such as transform or opacity, enhancing animations and transitions.