News for hackers. Stuff that matters.
Re:CSS3 lasers by photon_off on Wednesday August 18, 2010 @02:09AM (#1613374)
CSS3 offers a lot; essentially it can let you programmatically draw whatever you want fairly easily. While it's cool to see demos and fun things made with it, I'm about as impressed by most "look what I can do with CSS3" things as I am with "look what I can do with <insert graphical design software here>". That's not to say that neither can create amazing things; I'm just noting that since it's apparent CSS3 is quite powerful, it'll take more to impress me. Regardless, it's always fun to see these things :)
Re:CSS3 lasers by jashkenas on Tuesday August 17, 2010 @09:34PM (#1612991)
Re:CSS3 lasers by evilhackerdude on Tuesday August 17, 2010 @11:54PM (#1613211)
btw, laser.sass is now at http://github.com/evilhackerdude/lasers/blob/master/sass/las... (moved it for compass)
Re:CSS3 lasers by pepijndevos on Wednesday August 18, 2010 @03:05AM (#1613457)
It would be nice to have them animated with CSS transitions...
Re:CSS3 lasers by evilhackerdude on Wednesday August 18, 2010 @07:46AM (#1613832)
There were webkit animations in the beginning though the framerate was too low.
Re:CSS3 lasers by evilhackerdude on Tuesday August 17, 2010 @09:37PM (#1612995)
Is CoffeeScript available? I wanna marry it.
Re:CSS3 lasers by Zak on Tuesday August 17, 2010 @10:22PM (#1613065)
Let me google that for you...

http://jashkenas.github.com/coffee-script/

Re:CSS3 lasers by chc on Wednesday August 18, 2010 @03:09AM (#1613460)
I think he was using "available" in the colloquial sense of "a potential partner for a romantic relationship." Thus the desire to "marry it." Pretty sure he knows you can download it, seeing as how, y'know, jashkenas just linked to some CoffeeScript that he wrote.
Re:CSS3 lasers by jrockway on Wednesday August 18, 2010 @05:11AM (#1613627)
Zak was linking to the "fork me" button. Best to take a test drive before you marry it.
Re:CSS3 lasers by steveklabnik on Wednesday August 18, 2010 @12:32PM (#1614661)
Forking before marriage? You kids these days!
Re:CSS3 lasers by decadentcactus on Tuesday August 17, 2010 @09:49PM (#1613017)
I was disappointed when I realised there was no background electronic MIDI music.
Re:CSS3 lasers by evilhackerdude on Tuesday August 17, 2010 @10:15PM (#1613057)
Refresh — I added some deep Hans Zimmer for hearing pleasure while watching the lasers.
Re:CSS3 lasers by Adam503 on Wednesday August 18, 2010 @03:59AM (#1613517)
Hans Zimmer, my colon. You really are evil, evilhackerdude.
Re:CSS3 lasers by jot on Wednesday August 18, 2010 @09:32AM (#1614045)
How about this as a modern alternative: http://soundcloud.com/shamantis/j-biebz-u-smile-800-slower
Re:CSS3 lasers by snprbob86 on Wednesday August 18, 2010 @02:26AM (#1613398)
Woah: I recognize these exact laser patterns and colors. I feel like there are school photos of my cousins from the late 80s or early 90s which have this pattern as a backdrop. Did you have a reference image?
Re:CSS3 lasers by GVRV on Wednesday August 18, 2010 @10:02AM (#1614126)
I don't mean the undermine the skill required to achieve this but why would you use CSS to do something like this? I've also seen stuff like pure CSS logos, pure CSS fail whale, etc. and I have no doubt it helps you understand CSS inside out but what is the practicality of it? I love it, but I just want to know why you'd prefer pure CSS over images or some other way to display similar effects.
Re:CSS3 lasers by nzmsv on Wednesday August 18, 2010 @10:14AM (#1614173)
This is effectively a vector image. It can fit any window without losing quality. Something like this could also be done with an actual vector image (and there should eventually be good SVG support in all browsers), but I think CSS might give you more control in some situations.
Re:CSS3 lasers by bialecki on Wednesday August 18, 2010 @12:35AM (#1613266)
Re:CSS3 lasers by wihon on Wednesday August 18, 2010 @06:50AM (#1613760)
Oh jeepers! - definitely not work safe. My boss was pretty much directly behind me when "MOTHERFUCKING LASERS" appears on my 24" screen in massive letters.

This is the one time I'm glad the place I'm working is so backward web-wise, as the lasers didn't work - no CSS3 for me! - and thus my screen wasn't turn into even more of a profanity-emblazoned eye-magnet.

So thankfully, she didn't notice. Phew.

Re:CSS3 lasers by nathanwdavis on Wednesday August 18, 2010 @12:15PM (#1614594)
My boss walked by and said "That's cool!"
Re:CSS3 lasers by confuzatron on Wednesday August 18, 2010 @07:50AM (#1613839)
Lawks, it must suck to work in a factory where scented water is puffed onto doilies by baby deer with adorable eyes (I am guessing). But seriously - "motherfuckinglasers.com" didn't alert you?
Re:CSS3 lasers by wihon on Wednesday August 18, 2010 @10:58AM (#1614309)
Well. Yeah, I guess it kinda did. Sorreee muuum. :)

And you guessed right. Someone has to make all those liquid-center scented baby-dolls, right? And it just so happens that doe-eyed deer are particularly capable. Just a bit work-shy, which is where I come in and whip them into shape.

Edit: Hey! Why do I lose karma?! Was it the whipping part...?

Edit: Thanks. :)

Re:CSS3 lasers by daten on Tuesday August 17, 2010 @09:18PM (#1612968)
Impressive effects without using images.

Unfortunately: There are rendering problems in Firefox. It's a fixed size and doesn't scale with the browser window resolution. The same page can be achieved in a widely compatible way with a simple image.

Re:CSS3 lasers by TeHCrAzY on Tuesday August 17, 2010 @09:20PM (#1612973)
It's a tech demo, not a cross browser compatible widget.
Re:CSS3 lasers by evilhackerdude on Tuesday August 17, 2010 @09:35PM (#1612993)
The cut-off glow effect in Firefox? I guess the reason for that is a bug in the viewport calculation for the laser’s box-shadow. I mostly focused on webkit. If anyone knows a fix, code is here http://github.com/evilhackerdude/lasers

About resolution independence: I believe we could hack the CSS to use appropriate percentage values for the laser rays. Basically calculate a percentage for width or height in JS and apply that so it scales with the window automatically.

Re:CSS3 lasers by evilhackerdude on Wednesday August 18, 2010 @12:48AM (#1613284)
Scientifically proven thanks to modern laser technology: According to Google Analytics adding “Rick Astley - Never gonna give you up” decreases Avg. Time on Site by 2 seconds.
Re:CSS3 lasers by albemuth on Wednesday August 18, 2010 @01:20PM (#1614826)
I was expecting more pewpew
Re:CSS3 lasers by pontifier on Wednesday August 18, 2010 @11:04AM (#1614331)
So, I don't see anything. I'm guessing many others don't as well.
Re:CSS3 lasers by roofone on Wednesday August 18, 2010 @11:25AM (#1614393)
So, I see something, but feel I must be missing the pièce de résistance here. There's a background covered with parallelograms and the words "Mother-Fucking Lasers" that flash every once in a while.

Should I be seeing something else? (I'm using Chrome on Ubuntu.)

Re:CSS3 lasers by Ganthor on Tuesday August 17, 2010 @10:44PM (#1613087)
Can you make the audio loop?
Re:CSS3 lasers by evilhackerdude on Tuesday August 17, 2010 @11:06PM (#1613112)
No, that’s just wrong.

Ok, I couldn’t resist.

Re:CSS3 lasers by varikin on Wednesday August 18, 2010 @12:11PM (#1614579)
Apparently, I Rickrolled the managers standup today by tweeting this. Thank you.
Re:CSS3 lasers by Ganthor on Wednesday August 18, 2010 @01:04AM (#1613313)
You are now a god.
Re:CSS3 lasers by ludwig on Tuesday August 17, 2010 @10:38PM (#1613084)
Needs more CSS3 sharks
Re:CSS3 lasers by Groxx on Tuesday August 17, 2010 @11:43PM (#1613190)
<strikeout>sharks</strikeout> cowbell.