This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Experiments with stroke-dasharray */ | |
| circle { | |
| stroke: hsl(200, 10%, 20%); | |
| stroke-opacity: .9; | |
| fill: transparent; | |
| stroke-width: 31.8; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Frosted glass effect with filters | |
| */ | |
| * { padding: 0; margin: 0 } | |
| body, html { min-height: 100%; } | |
| body, div:after { | |
| background: url('http://devslovebacon.com/images/bacon-bg.jpg') center; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Learning CSS3 | |
| * Multiple backgrounds, basic linear gradients | |
| */ | |
| html { | |
| background: linear-gradient(black, #444); | |
| background-color: #222; | |
| height: 100%; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Learning CSS3 | |
| * border-image | |
| */ | |
| html { | |
| min-height:100%; | |
| background: white url(http://leaverou.github.com/chainvas/img/background.jpg); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Learning CSS3 | |
| * RGBA/HSLA, border-radius, box-shadow, text-shadow | |
| */ | |
| html { | |
| min-height:100%; | |
| background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg') center; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Learning CSS3 | |
| * Transitions & transforms | |
| */ | |
| html { | |
| min-height:100%; | |
| background: url('http://leaverou.github.com/CSSS/img/rainbow-wood.jpg') top; | |
| background-size: cover; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Masking an image with a gradient (answer to question) | |
| */ | |
| div { | |
| width: 200px; height: 200px; | |
| background: linear-gradient(white, hsla(0,0%,100%,0)), | |
| url(http://placekitten.com/200/200); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * 3D cube | |
| */ | |
| body { | |
| perspective: 99999px; | |
| } | |
| body > section { | |
| display: inline-block; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Teardrop kitty - By @LeaVerou */ | |
| .teardrop { | |
| display: inline-block; | |
| overflow: hidden; | |
| border-radius: 50%; | |
| border-top-left-radius: 0; | |
| transform: translateY(10%) scale(.8) rotate(45deg); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Tucked corners with one element | |
| */ | |
| html { | |
| background: url('http://www.red-team-design.com/wp-content/uploads/2012/10/wood.png') | |
| } | |
| body { | |
| width: 500px; |