News for hackers. Stuff that matters.
Re:Building Websites with Lots of Little HTML Pages by mdwhatcott on Wednesday March 12, 2025 @05:16PM (#43347762)
> "I build separate, small HTML pages for each “interaction” I want, then I let CSS transitions take over and I get something that feels better than its JS counterpart for way less work."

I'm not understanding how you are achieving the css transitions between what look like new page loads under the hood...Can you elaborate on how that works?

Re:Building Websites with Lots of Little HTML Pages by andypants on Wednesday March 12, 2025 @05:47PM (#43347988)
Re:Building Websites with Lots of Little HTML Pages by alberth on Wednesday March 12, 2025 @05:57PM (#43348061)
Surprisingly, Firefox of all browsers doesn't support it.

https://caniuse.com/view-transitions

Re:Building Websites with Lots of Little HTML Pages by MYEUHD on Wednesday March 12, 2025 @06:11PM (#43348182)
It's not that surprising if you consider that all the browsers on that page, except for Firefox and Safari, are Chrome-based
Re:Building Websites with Lots of Little HTML Pages by gwern on Wednesday March 12, 2025 @09:31PM (#43349527)
That's a pretty major deal breaker for OP to leave out of his post touting it as something to build everything in your site on (especially for a tech blog)! Does it at least have a polyfill story? I see no mention of how to make it work on, uh, the other 15% of browsers worldwide, CanIUse is telling me.
Re:Building Websites with Lots of Little HTML Pages by internetter on Wednesday March 12, 2025 @10:36PM (#43349870)
If you use it in a browser that doesn't support view transitions, the pages just don't animate. no harm no fowl
Re:Building Websites with Lots of Little HTML Pages by mdwhatcott on Wednesday March 12, 2025 @05:59PM (#43348068)
Very cool, thanks!