Plugin jQuery: 3D Shading with Box-shadows in CSS3

3D Shading with Box-shadows in CSS3
http://www.jqueryrain.com/?http://tympanus.net/Tutorials/3DShadingWithBoxShadows/
http://tympanus.net/codrops/2013/08/27/3d-shading-with-box-shadows/
28/08/2013

Nội dung

3D Shading with Box-shadows in CSS3

When working with 3D transformed elements, you might notice that they don’t have any shading and appear to be very flat. In real life, objects block light and have shadows. Surfaces can be matte, reflective, and everything in between. Indeed, we can do better.

If you need to cast light onto complicated geometry, there are options available such as Photon, but they’re very processor intensive. In this article, I’ll show you a solution that can be applied to objects that only have a few faces. Our example will be a 3D movie gallery with glossy posters and, when the posters are rotated, the sides will contain matte information cards with meta data about the film.

Tags: Rotate Image

Nguồn: www.jqueryrain.com/2013/08/3d-shading-with-box-shadows-in-css3/


Chưa có phản hồi
Bạn vui lòng Đăng nhập để bình luận