biodixxx Posted July 29, 2020 Share Posted July 29, 2020 Hello, thank you for all your work, in ScrollTrigger docs its said that resizing runs onrefresh and that recalculates, but it doesn't work in codepen provided, it changes the value in console log but the property isnt recalculated accroding to to the offset height, also when i have display: none on triggering element it doesnt init even when i resize to the width when display is visible. See the Pen jOWjOGN?editors=1111 by biodixxx (@biodixxx) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted July 29, 2020 Share Posted July 29, 2020 Hey biodixxx and welcome to the GreenSock forums. If you want a property to recalculate on refresh then you need to make it a functional value: end: () => `top ${document.querySelector('.b').offsetHeight}` 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now