This file contains 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
/** | |
* Interactive image comparison - with CSS resize | |
*/ | |
.image-slider { | |
position:relative; | |
display: inline-block; | |
} | |
.image-slider > div { |
This file contains 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
/** | |
* Test: color stops with two locations | |
* PASS if green stripes, FAIL if red | |
*/ | |
background: red; | |
background: repeating-linear-gradient(-45deg, limegreen 0 20px, green 20px 60px); | |
min-height: 100%; |
This file contains 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
/** | |
* Trapezoid tabs | |
*/ | |
body { | |
padding: 40px; | |
font: 130%/2 Frutiger LT Std, sans-serif; | |
} | |
nav { |
This file contains 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
/** | |
* Static interpolation via paused animations | |
* This technique becomes more useful if you need to interpolate more than 1 properties, and/or if you need multiple values in the spectrum | |
* Currently works in every modern browser except Safari | |
*/ | |
@keyframes foo { | |
from { background: red } | |
to { background: yellowgreen } | |
} |