'What about creating the whole website within a CANVAS?
I am designing a new website from scratch and wondered what cons could have in developing the whole site within a <canvas> element.
I am aware of compatibility issues with IE6/7/8 but that's not important for this project. But I do care, for example, the Google search engine behavior and mobile compatibility.
The main reason why I chose this way is to have the possibility to code advanced effects and animations over elements and pictures which are not possible with pure HTML5/CSS.
Solution 1:[1]
This is just like creating a website using WebGL! We use them for a better visual experience, but they are not usable for screen readers and crawlers. to fix this issue, we can create content for specific devices and hide them on others.
Solution 2:[2]
My own website is a single Canvas and a single big Javascript (from Typescript), so yes it is feasible and it autoscales to be viewed on a mobile phone, also auto-rotating...
If you are interested : www.erroba.be (acronym of my name Erlend Robaye)
I'm sure you could view the source and get some ideas.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Omid Navy |
| Solution 2 |
