Content pfp
Content
@
0 reply
0 recast
0 reaction

hellno the optimist pfp
hellno the optimist
@hellno.eth
When I scroll the twitter timeline on desktop with J and K, it always keeps the focused tweet at the top aligned with the navbar. How can I replicate this effect for @herocast when scrolling casts? currently feels a bit janky
1 reply
0 recast
2 reactions

typeof.eth 🔵 pfp
typeof.eth 🔵
@typeof.eth
There's a few ways to do it, but IMO the easiest would be to set position: relative; on the container, and scrollTo the children's offset when they're focused. E.g. something like https://codepen.io/dgca/pen/rNopxJb
1 reply
0 recast
2 reactions

hellno the optimist pfp
hellno the optimist
@hellno.eth
wow thank you! I wasn’t too far off before, will try to add this during the weekend
1 reply
0 recast
1 reaction

typeof.eth 🔵 pfp
typeof.eth 🔵
@typeof.eth
scrollTo has a smooth scrolling option if you want that 🧈
0 reply
0 recast
1 reaction