3D Translate
http://code.tutsplus.com/tutorials/the-30-css-selectors-you-must-memorize--net-16048
Elements may also be translated on thez
axis using the translateZ
value. A negative value here will push an element further away on the z
axis, resulting in a smaller element. Using a positive value will pull an element closer on the z
axis, resulting in a larger element.While this may appear to be very similar to that of the two-dimensional transform
scale
value, it is actually quite different. The transform is taking place on the z
axis, not the x
or y
axes. When working with three-dimensional transforms, being able to move an element on the z
axis does have great benefits, like when building the cube below for example.HTML
1 2 | <figure class="box-1">Box 1</figure> <figure class="box-2">Box 2</figure> |
CSS
1 2 3 4 5 6 | .box-1 { transform: perspective(200px) translateZ(-50px); } .box-2 { transform: perspective(200px) translateZ(50px); } |
3D Translate Demo

HTML
1 2 3 4 | <div class="container"> <section>...</section> <aside>...</aside> </div> |
CSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | .container { width: 538px; } section, aside { margin: 10px; } section { float: left; width: 340px; } aside { float: right; width: 158px; } |
BEST CSS USING VIDEO
on mouse click NET
design like news paper
CSS BEST DESIGN
JSFiddle
JSFiddle was one of the earliest code playgrounds and a major influence for all which followed. Despite the name, it can be used for any combination of HTML, CSS and JavaScript testing. It’s looking a little basic today, but still offers advanced functionality such as Ajax simulation.
CodePen
CSS Deck
JS Bin
Dabblet
Tinkerbin
Liveweave
I guess I missed your favorite?…
Comments on this article are closed. Have a question about Web Design? Why not ask it on our forums
No comments:
Post a Comment