TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Pure CSS new 3D effect

252 pointsby texeltexelover 15 years ago
Even better than the 3D Meninas

12 comments

coderdudeover 15 years ago
The other examples on his blog are even cooler... check this out. <a href="http://www.romancortes.com/blog/css-3d-meninas/" rel="nofollow">http://www.romancortes.com/blog/css-3d-meninas/</a>
评论 #1078234 未加载
评论 #1078723 未加载
flogover 15 years ago
Nice effect.<p>I think a bit of JS is being used to create the DIV structure, but that's not important.<p>It could also be improved a bit: you could remove the shading gradient from the Coke can mask PNG, and render the shading using an CSS gradient with RGBA values. That would mimic the specular highlighting, and you could also animate the shading.<p>I still haven't quite grok'd the displacement method though... it must be carefully calculated background x pos offsets? (I don't have firebug on this machine)
评论 #1078014 未加载
评论 #1077982 未加载
middusover 15 years ago
Awesome hack. I don't really have any application for this, though.
评论 #1077578 未加载
评论 #1079543 未加载
评论 #1078319 未加载
citricsquidover 15 years ago
<a href="http://m00d.net/mirror/coke/" rel="nofollow">http://m00d.net/mirror/coke/</a> &#60;- mirrored.
robotronover 15 years ago
This experiment is definitely worthy of a post. I haven't looked at how he did that or the "CSS Bird" shadow effect but I'm impressed that can be done without Javascript.
faramarzover 15 years ago
Very cool. My question is.. how did he scan the coke-can? <a href="http://www.romancortes.com/ficheros/coke-label.jpg" rel="nofollow">http://www.romancortes.com/ficheros/coke-label.jpg</a>
评论 #1079076 未加载
评论 #1085974 未加载
noboshover 15 years ago
This is slick. I wonder how long it took to build that image/
polynomialover 15 years ago
PROTIP: Try hiding the the width and the float on p and/or the padding and width on the 'div div' with firebug.
sscheperover 15 years ago
That looks great. No trying to be a dick, but what's the point?
评论 #1078318 未加载
评论 #1078998 未加载
sandGorgonover 15 years ago
wow!
levesqueover 15 years ago
Seems cpu intensive :) Server down.
评论 #1078313 未加载
vinhboyover 15 years ago
Wow amazing. Now I feel like a total CSS noob.