- styled-components reading
- lib to handle themes https://jamie.build/styled-theming.html
- organising design token https://github.com/everweij/design-tokens-ts-styled-components
- Revising GSAP scroll trigger again. All tutorials generally target DOM elements with
querySelector
, but GSAP works perfect with React refs. - when installing on a react app/next.js. we need to remember to import
gsap
andScrollTrigger
, then finally register the plugin. I think registration only needs to happen once, but itโs ok to register multiple times and it will treat it as a singleton.
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger';
gsap.registerPlugin(ScrollTrigger);
- Working through some tutorials from this annoying guy https://www.youtube.com/watch?v=If_Yp4TCt9c&list=PLMPgoZdlPumexxtvuPUB3TY7LExI1N_Xp&index=3