Marxism-Fennekinism@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 年前Frontend vs backendlemmy.mlimagemessage-square117linkfedilinkarrow-up11.25Karrow-down114
arrow-up11.24Karrow-down1imageFrontend vs backendlemmy.mlMarxism-Fennekinism@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 2 年前message-square117linkfedilink
minus-squarevoxel@sopuli.xyzlinkfedilinkarrow-up4·edit-22 年前yeah, just css is enough. you don’t need js unless you need to fetch data dynamically. you can do all of your animations, dropdowns and transitions in css. like this menu i made. no js in sight. https://streamable.com/4ba0gg also fully accessible and you can tab right into it without clicking enter or whatever (and respects prefers-reduced-motion)
yeah, just css is enough.
you don’t need js unless you need to fetch data dynamically.
you can do all of your animations, dropdowns and transitions in css.
like this menu i made. no js in sight.
https://streamable.com/4ba0gg
also fully accessible and you can tab right into it without clicking enter or whatever
(and respects prefers-reduced-motion)