Whenever someone makes a menu with CSS instead of javascript i go crazy as a user. The lack of delay is such a frustration.
Whenever someone makes a menu with js I don't use the site because I browse without js.
CSS is powerful, you can do a lot of things without JS
31–40 of 319 posts
Re: CSS is powerful, you can do a lot of things without JS
#32Re: CSS is powerful, you can do a lot of things without JS
#33Whenever someone makes a menu with CSS instead of javascript i go crazy as a user. The lack of delay is such a frustration.
There is no need to throw some crazy JavaScript stuff at a problem that does not even exist.
Seems like lots of web developers have forgotten to keep it simple.
Re: CSS is powerful, you can do a lot of things without JS
#34Whenever someone makes a menu with CSS instead of javascript i go crazy as a user. The lack of delay is such a frustration.
Also no hover menu [1], please. In JavaScript hover menu is harder to make, but in CSS it is instant and much prone to abusing. [1] http://uxmovement.com/navigation/why-hover-menus-do-users-mo...
Re: CSS is powerful, you can do a lot of things without JS
#35Re: CSS is powerful, you can do a lot of things without JS
#36Edit: Downvoting me because you disagree isn't really in the spirit of HN.
Please provide a counter argument if you disagree, I'd be interested to hear it.
Re: CSS is powerful, you can do a lot of things without JS
#37Still not good enough. For example the popover/tooltip that pops up on hover is fixed right below the target. If for example the viewport/window is smaller than the available space it will "bleed" out of view. You still need javascript to place it properly, and javascript that manipulates :after and :before pseudo elements is not straightforward.. Just saying :)
the other stuff ranges from clever tricks, like the label/checkbox modal, to stuff which would be a nightmare to maintain on a complex page
Re: CSS is powerful, you can do a lot of things without JS
#38Yes, but the problem is that adding or changing functionality implemented in CSS can easily lead you into a brick wall.
At that point you will either have to rethink your approach completely, or move back to JS.
Re: CSS is powerful, you can do a lot of things without JS
#39The problem with relying on anchors means it stays in the browser history, so if you press 'back', you get the modal dialog again! I don't think this is very useful, but it is a fun exercise in CSS.
Just use JavaScript to clear the browser history. Bingo! Pure CSS modal.
Re: CSS is powerful, you can do a lot of things without JS
#40Still not good enough. For example the popover/tooltip that pops up on hover is fixed right below the target. If for example the viewport/window is smaller than the available space it will "bleed" out of view. You still need javascript to place it properly, and javascript that manipulates :after and :before pseudo elements is not straightforward.. Just saying :)