Hi all! How are you guys?
Problem
- I would like web pages to have automatic zoom… for example suppose I click on any element on this page… clicking would zoom in… this could make any page easier to read… I wouldn’t want to depending on a company or a group of people for this, I would just like most browsers to have this implementation
- This is possible in a mobile environment, but in a desktop environment this was never implemented or considered… usually we have to press ctrl+ and ctrl- to zoom the page
- I would like browsers to natively adopt the guidelines that implement this as per here from wicg.
- Relying on a company to individually implement this feature is a problem.
- Relying on some company or individual browser to implement this feature is a problem.
- The solution in my opinion would be if the community could implement a guideline to make this possible
- There is an open source library that implements page zooming here : zoom-js Note: zoom-js is an minimal JavaScript API which enables zooming in on elements or rectangles in a document.
user stories
- Some people who work in the academic field are elderly people… - people I like, admire, respect and have great regard for. I want to make the web accessible to the people I know and speak here
- So… these people who are my friends… usually wear glasses… So, as they use the desktop a lot, it’s common to spend hours reading a scientific article or accessing the various websites available and social networks today…
- But as I mentioned earlier… the zoom feature is something that on cell phones when accessing the page is possible, but on the desktop it is not, given that on the desktop because it has less usage than mobile…
- Many companies and browsers still haven’t thought about implementing zoom in the desktop environment
- For this reason I’m requesting a dynamic api that does this on the entire page I access… This would be inside the
<body zoom="true"></body>
tag
Source-code
<script src="https://lab.hakim.se/zoom-js/js/zoom.js"></script>
<script>
document.querySelector( '.page-body' ).addEventListener( 'click', function( event ) {
event.preventDefault();
zoom.to({ element: event.target });
} );
</script>
Notes
- I would be happy if there are any bad or good answers about this idea
- I would like to help the web positively, in a good way
- This would allow for better web accessibility for people with reading difficulties, I would like to help the web and the web community
- Now everything you click on will automatically zoom, which is really cool and interesting for those users I mentioned here, who are my friends