I mean you could have used svgs and a js library like raphael to use svg instead to decrease the load times, etc..
Ben the Bodyguard: Gorgeous HTML5 Website
81–90 of 104 posts
Re: Ben the Bodyguard: Gorgeous HTML5 Website
#82Calling it an “HTML5 website” is a bit of an overreaction IMHO. Other than the DOCTYPE, there’s not much “HTML5” to it. It’s just good old HTML, JavaScript and CSS, wrapped together in a document that happens to use the HTML5 DOCTYPE.
Speaking of DOCTYPE, it seems there is no DOCTYPE on HN.
Re: Ben the Bodyguard: Gorgeous HTML5 Website
#83How many Frenchmen do you know named Ben?
Re: Ben the Bodyguard: Gorgeous HTML5 Website
#84"Protecting your passwords, photos, contacts and other sensitive stuff on your iPhone® or iPod touch®"
Re: Ben the Bodyguard: Gorgeous HTML5 Website
#85In case anyone's not familiar with Javascript/HTML/CSS and is curious how this works, it's actually pretty simple and elegant. Ben is just an image positioned in the centre of the screen using a CSS property called "position: fixed", which means he doesn't move even when the content scrolls. The walking animations are created using a technique called CSS sprites, where instead of having multiple images, you just crea…
Javascript's onscroll event is a wonderful tool. It's one of the best ways to leverage an extremely common and expected interaction pattern (scrolling down a web page) to do interesting and unexpected things. I used it to create a sort of paginated-persistent-bookmark navigation for my new portfolio site earlier this year (in profile, if you're curious).
Re: Ben the Bodyguard: Gorgeous HTML5 Website
#86Re: Ben the Bodyguard: Gorgeous HTML5 Website
#87Earlier quoted context omitted.
Sigh. It’s not incorrect. Language doesn’t work that way.
Unfortunately, it does when language is used to denote specific technologies.
Re: Ben the Bodyguard: Gorgeous HTML5 Website
#88Earlier quoted context omitted.
Javascript's onscroll event is a wonderful tool. It's one of the best ways to leverage an extremely common and expected interaction pattern (scrolling down a web page) to do interesting and unexpected things. I used it to create a sort of paginated-persistent-bookmark navigation for my new portfolio site earlier this year (in profile, if you're curious).
Clickable: http://rclayton.net I think it's very elegantly done. Kudos.
Re: Ben the Bodyguard: Gorgeous HTML5 Website
#89Re: Ben the Bodyguard: Gorgeous HTML5 Website
#90Earlier quoted context omitted.
Javascript's onscroll event is a wonderful tool. It's one of the best ways to leverage an extremely common and expected interaction pattern (scrolling down a web page) to do interesting and unexpected things. I used it to create a sort of paginated-persistent-bookmark navigation for my new portfolio site earlier this year (in profile, if you're curious).
Clickable: http://rclayton.net I think it's very elegantly done. Kudos.