디자이너 vs 퍼블리셔
source : Apple's HTML5 Showcase
div.L1 { background:rgba(153, 134, 117, 0.2); height:20px; }
div.L2 { background:rgba(153, 134, 117, 0.4); height:20px; }
div.L3 { background:rgba(153, 134, 117, 0.6); height:20px; }
div.L4 { background:rgba(153, 134, 117, 0.8); height:20px; }
div.L5 { background:rgba(153, 134, 117, 1.0); height:20px; }
The above RGBA example is set in another layer containing a background texture
@font-face {
font-family: SketchRockwell;
src: url(‘SketchRockwell.ttf’);
}
.my_CSS3_class {
font-family: SketchRockwell;
font-size: 3.2em;
}
CSS3 can render type using several font formats: “truetype” (ttf), “opentype” (otf), “embedded-opentype” (eot) and “scalable-vector-graphic” (svg,svgz).
.my_CSS3_class {
text-shadow: 2px 2px 7px #111;
font-size: 3.2em;
color: #f5f5f5;
}
the CSS is written text-shadow: x-axis, y-axis, cast length / feathering, colour as usual;
#my_CSS3_id {
border: 5px solid #c4c8cc;
-moz-box-shadow: 5px 5px 7px #888;
-moz-border-radius-bottomright: 15px;
-webkit-box-shadow: 5px 5px 7px #888;
-webkit-border-bottom-right-radius: 15px;
}
![]()
This effect can also be applied to images…
#my_CSS3_id {
border: 5px solid #c4c8cc;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
}
This is a panel set with a 5 pixel standard border and a 15 pixel border radius.
This is a panel set with a 5 pixel standard border and a 15 pixel border radius on two individual corners.
.my_CSS3_class {
height: 100px;
background: -moz-linear-gradient(top, #35425d 0%, #fff 100%);
background: -webkit-gradient(linear, left top, left bottom, from(#35425d), to(#fff));
}
linear gradient and radial gradient
#my_CSS3_id {
background:
url(image_1.extention) top left no-repeat,
url(image_2.extention) bottom left no-repeat,
url(image_3.extention) bottom right no-repeat;
}
.my_CSS3_class {
-moz-transform: rotate(7deg);
-webkit-transform: rotate(7deg);
}
.my_CSS3_class {
-moz-transform: skew(-25deg);
-webkit-transform: skew(-25deg);
}
.my_CSS3_class {
-moz-transform: scale(0.5);
-webkit-transform: scale(0.5);
}
rotate
skew
scale
a.polaroid {
width: 150px;
padding: 10px 10px 20px 10px;
border: 1px solid #BFBFBF;
background-color: white;
z-index: 2;
-webkit-box-shadow: 2px 2px 4px rgba(0,0, 0, 0.3);
-moz-box-shadow: 2px 2px 4px rgba(0,0, 0, 0.3);
box-shadow: 2px 2px 4px rgba(0,0, 0, 0.3);
-webkit-transform: rotate(10deg);
-moz-transform: rotate(10deg);
transform: rotate(10deg);
-webkit-transition: all 0.5s ease-in;
}
a.polaroid:hover,
a.polaroid:focus,
a.polaroid:active {
z-index: 999;
border-color: #6A6A6A;
-webkit-box-shadow: 15px 15px 20px rgba(0,0, 0, 0.4);
-moz-box-shadow: 15px 15px 20px rgba(0,0, 0, 0.4);
box-shadow: 15px 15px 20px rgba(0,0, 0, 0.4);
-webkit-transform: rotate(0deg) scale(1.05);
-moz-transform: rotate(0deg) scale(1.05);
transform: rotate(0deg) scale(1.05);
}
@-webkit-keyframes pulse {
0% {
background-color: red;
opacity: 1.0;
-webkit-transform: scale(1.0) rotate(0deg);
}
33% {
background-color: blue;
opacity: 0.75;
-webkit-transform: scale(1.1) rotate(-5deg);
}
67% {
background-color: green;
opacity: 0.5;
-webkit-transform: scale(1.1) rotate(5deg);
}
100% {
background-color: red;
opacity: 1.0;
-webkit-transform: scale(1.0) rotate(0deg);
}
}
.pulsedbox {
-webkit-animation-name: pulse;
-webkit-animation-duration: 4s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: ease-in-out;
}
source : Pure CSS3 Page Flip Effect
source : Pure CSS Twitter 'Fail Whale'
source : Curtis CSS Typeface
source : Pure CSS3 AT-AT Walker
source : iOS Icons made in Pure CSS