Single Element MacBook Pro with CSS
61–69 of 69 posts
Re: Single Element MacBook Pro with CSS
#62Cool, and I'm glad that someone is demonstrating a way to use CSS3 to create graphics in a way that doesn't require extra markup. One of the biggest problems with CSS3 is that, in a twist of irony, it's image composition power entices developers into adding markup to hang the CSS off of. This ends up complicating the markup merely to generate an image, which is a mistake. This technique, on the other hand, using the…
This should be an SVG. Using box-shadows to create shapes is not only confusing but really, really performance-draining. (not to be a downer, it's incredibly impressive, but not something you should do in production code)
Re: Single Element MacBook Pro with CSS
#63Re: Single Element MacBook Pro with CSS
#64Re: Single Element MacBook Pro with CSS
#65If you add .macbook {zoom:4;} you can see how the detail is done. Basically you use lots of box-shadows to give you elements to glue together. The details on the front are not actually solid lines, but a collection of circles side by side. That's when you realise this technique is a bit flawed - you can't actually scale the element and keep the detail, you'd be better off with an image. Not to take anything away from…
Re: Single Element MacBook Pro with CSS
#66Impressive. While I'm generally familiar with CSS I haven't delved into the icon logo stuff yet. I'm toying with the idea of trying to create JS/CSS-based country/state maps with customizable mouseover/onclick functionality, since there aren't really any good free versions available (that I've found). This kind of stuff inspires me that it might be possible, though I have no idea how hard it would be to create geogra…
Re: Single Element MacBook Pro with CSS
#67And now we've got a Macbook Air! http://codepen.io/anon/pen/kqALB
Re: Single Element MacBook Pro with CSS
#68There really should be a warning on all these demos, something like: "Don't actually draw with css in the wild, you'll break the web."
Drawing in CSS like this isn't as simple as dropping jQuery on the page.
If there was a jQuery plugin to automate this process from image to css, then we should worry!