nerdwise / nerdwise-website

Promotional website for Nerdwise
0 stars 0 forks source link

Changes to block cross fade scroll tween #149

Closed kadenzipfel closed 5 years ago

kadenzipfel commented 5 years ago

Use custom start and end distances so that the tween finishes right as the two blocks touch.

To do this you'll need to use tan() and the TOA formula to get how far along the Y axis the two corners have traveled as a result of the Skew. You'll need to set the start/end distance as a formula that returns that amount plus a portion of the screen height plus a portion of the block height.

kadenzipfel commented 5 years ago

https://github.com/nerdwise/nerdwise-website/pull/150