Live data from Hacker News

CSS is powerful, you can do a lot of things without JS

github.com

11–20 of 319 posts

Re: CSS is powerful, you can do a lot of things without JS

#13

Whenever 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

#14

The problem with using css this way is that it's not as obvious what's supposed to happen as it is when using js. I'd love for there to be some explanation within the examples of _why_ they work - I've just been reading the first modal example but I can't really understand it

Building web applications with screens that have complex workflows and state is a need that is largely ignored by browsers and web standards.

Instead of getting reusable gui components we get indechiperable css hacks that were built for creating art installations on the web rather than getting any actual work done.

Re: CSS is powerful, you can do a lot of things without JS

#15
post #5

The 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

#16

Whenever someone makes a menu with CSS instead of javascript i go crazy as a user. The lack of delay is such a frustration.

You can always use transitions to add the same effect. I personally enjoy when things open quickly, some people almost fetishize transitions to an absurd level.

Re: CSS is powerful, you can do a lot of things without JS

#17
post #5

The 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.

Well, you can manipulate the browser history to remove those anchor links :)

Re: CSS is powerful, you can do a lot of things without JS

#18
post #11

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.

Then you start adding exceptions for every single website you visit, such as http://cs.stackexchange.com/

Re: CSS is powerful, you can do a lot of things without JS

#20
post #17
post #5

The 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.

Well, you can manipulate the browser history to remove those anchor links :)

... but perhaps not with CSS...
Post reply on HN