Star Wars opening crawl from 1977 in HTML/CSS/JS
1–10 of 68 posts
Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#2Thanks for sharing!
Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#3Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#4Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#5Logo appears and fades out then nothing but music and blackness.
Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#6Most of the code is actually to recreate the music. The scrolling of the text is the easy part.
The scrolling itself is just a CSS "transform: perspective(300px) rotateX(25deg)".
You can also edit the scrolled text because I added the contenteditable="true" attribute to the titles.
Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#7If anybody's interested why there's aliasing it's important to know how CSS transforms work. If you transform, the browser lifts the transformed rectangle into its own layer and renders its content to a texture. Then, later, it is composited with the page by blitting that texture with whatever transformation was applied.
So CSS transforms are an application of texturing. And in texturing what you do to avoid aliasing is mipmapping (you might also throw anisotropic filtering on top). However as the texture holding the rect the browser rendered isn't square power of two, some devices do not support mipmapping it. It is also quite slow to generate the mipmap for a texture every frame.
So with CSS transforms not being able to utilize mipmapping --> aliasing.
Now, in particular mipmapping text (that's supposed to be sharp) isn't even the best idea. It just gets blurry and looks unappealing (although that's better with anisotropic filtering, but then, anisotropic filtering is also expensive and not every device/GPU supports it).
Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#8I wish I could see it - seems busted on Chrome 29.0.1547.65 - Crunchbang Waldorf x64 Logo appears and fades out then nothing but music and blackness.
Re: Star Wars opening crawl from 1977 in HTML/CSS/JS
#9Ah my eyes, the aliasing. If anybody's interested why there's aliasing it's important to know how CSS transforms work. If you transform, the browser lifts the transformed rectangle into its own layer and renders its content to a texture. Then, later, it is composited with the page by blitting that texture with whatever transformation was applied. So CSS transforms are an application of texturing. And in texturing wha…
Thanks in advance.