Seeking a solution for fixing divs with text in CSS. I am aware of the background-attachment: fixed; property which creates a fancy effect. Is there a similar property to "fix" divs with text or how can this be achieved in Typescript? Your insight would be greatly appreciated.
//edit: To clarify, when using background-attachment: fixed; a parallax effect is created where the background remains fixed but not the content within the div. This example demonstrates the effect: w3schools.com/howto/tryhow_css_parallax_demo.htm I am wondering if it's possible to achieve a similar effect with text and other content within the div.