SZAFRAN-PROJEKT migrating to NEXT-JS and Tailwind

Yup, it had to happen.

Blog post by Krzysztof Szafran

Not much to say, cut out a couple of sections, made it more clear, used some great NEXT-JS features such as Image to make images responsive.

The question was how to migrate GSAP. And boy oh boy. Some of the functions worked correctly. Some were starting twice - but that's the strict policy. Some weren't starting at all, and that was the breaking point.

I came up with a simple solution - react-observers and I'll just add classes when the viewport reaches a certain point. Simple as that, and with that, all the problems were gone.


Enjoyed this article?

Leave a comment below!


Comments