Jeremiah Lee on Nostr: You don’t need JavaScript to animate scrolling to an anchor on a webpage. CSS can ...
Published at
2024-09-03 16:59:23Event JSON
{
"id": "e96a05daaf868383e2d0a026e7157bee6a17afc46d7edb47482963a26d741d40",
"pubkey": "bc496a7f99d69c2e9bf66fcb9e398bd7b1f7ae733ad003e6b8488debaf0a289a",
"created_at": 1725382763,
"kind": 1,
"tags": [
[
"t",
"webdev"
],
[
"t",
"css"
],
[
"proxy",
"https://alpaca.gold/users/Jeremiah/statuses/113074684791968888",
"activitypub"
]
],
"content": "You don’t need JavaScript to animate scrolling to an anchor on a webpage. CSS can help.\n\n`html { scroll-behavior: smooth; }`\n\nhttps://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior\n\n#WebDev #CSS",
"sig": "9e449e90bc7b0b66ac731b324e200cc496082036bf259815dec1dcdf1b12e65ca21af20aa7c7fee44b51b48f9501b1efc4ebb3b922a41cb5387eb72e7700bf56"
}