Css3 Cheat Sheet
Css3 Cheat Sheet
Selectors Animations
El[att^="val"] Match attribute values beginning w/ 'val' -webkit-animation: name duration timing_function;
El[att$="val"] Match ending values
El[att*="val"] Match substring values -webkit-animation-name: Of @-webkit-keyframe
El:not(s) Element that is not 's'. -webkit-animation-duration: Time in seconds
El:nth-child(n) Element that is n-th child of its parent -webkit-animation-timing-function: ease-in, linear etc.
El:target Element that is target of referring URL -webkit-animation-delay: Time until start
-webkit-animation-iteration-count: Count or infinite
div#bar is a target for http://foo/#bar
@-webkit-keyframes "colorShift" { /* Give it a name */
0% { background-color: red; }
100% { background-color: blue; }
Flexible Box Model create HBox and VBox }
Transitions
Box Sizing standard box vs. padding/border inside
-webkit-transition: opacity 1s linear;
-webkit-box-sizing: content-box | border-box;
-webkit-transition-property: Property to change or all
-webkit-transition-duration: Time in seconds
Multiple Columns newspaper-like columns of text -webkit-transition-timing-function:
linear, ease-in, ease-out, ease-in-out, etc.
-webkit-columns: width count
Shadows box and text shadows use same syntax Font Face
@font-face {
box-shadow or text-shadow: x-offset y-offset blur color font-family: 'MyFont';
src: url('MyFont.file'); }
text-shadow: 0 1px 5px rgba(0,0,0,0.3);