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
/* Transitions */ | |
div { | |
background: #f9e; | |
width: 200px; | |
padding: 10px; | |
margin: 40px 0; | |
color: white | |
} | |
div:hover { |
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
/* Easing comparison */ | |
body{background:#F7F8F8;} | |
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;} | |
div:hover {width: 500px;} | |
div:nth-child(n+4):hover { width: 208px; } | |
div:nth-child(1) { transition: 0.4s ease; } | |
div:nth-child(2) { transition: 0.4s ease-in-out; } | |
div:nth-child(3) { transition: 0.4s linear; } |
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
/* Easing comparison */ | |
body{background:#F7F8F8;} | |
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;} | |
div:hover {width: 500px;} | |
div:nth-child(n+4):hover { width: 208px; } | |
div:nth-child(1) { transition: 0.4s ease; } | |
div:nth-child(2) { transition: 0.4s ease-in-out; } | |
div:nth-child(3) { transition: 0.4s linear; } |
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
/* Easing comparison */ | |
body{background:#F7F8F8;} | |
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;} | |
div:hover {width: 500px;} | |
div:nth-child(n+4):hover { width: 208px; } | |
div:nth-child(1) { transition: 0.4s ease; } | |
div:nth-child(2) { transition: 0.4s ease-in-out; } | |
div:nth-child(3) { transition: 0.4s linear; } |
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
/* Easing comparison */ | |
body{background:#F7F8F8;} | |
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;} | |
div:hover {width: 500px;} | |
div:nth-child(n+4):hover { width: 208px; } | |
div:nth-child(1) { transition: 0.4s ease; } | |
div:nth-child(2) { transition: 0.4s ease-in-out; } | |
div:nth-child(3) { transition: 0.4s linear; } |
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
/* Easing comparison */ | |
body{background:#F7F8F8;} | |
div {background: #C10280; width: 200px;padding: 10px;margin: 30px 0;color: white;} | |
div:hover { width: 208px; } | |
div:nth-child(1){ transition: 0.4s ease; } | |
div:nth-child(2) { transition: 0.4s ease-in-out; } | |
div:nth-child(3) { transition: 0.4s linear; } |
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
/* Ease - pixel snapping? */ | |
body{background:#F7F8F8;} | |
div {background: #C10280; width: 200px; height:30px; padding: 10px;margin: 30px 0;color: white;} | |
div:nth-child(1):hover { width: 208px; } | |
div:nth-child(2):hover {width:220px;} | |
div:nth-child(3):hover {height:40px;} | |
div:nth-child(4):hover {opacity:.2;} | |
div { transition: 0.4s ease; } |
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
/** | |
* crossfade | |
*/ | |
div {width:250px; height:80px border: 1px solid red;;} | |
#cross1 {background:url (http://imgur.com/CHfDi);} | |
#cross2 {background:url(http://imgur.com/VeXjs);} |
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
/** | |
* Playing with crossfades | |
*/ | |
div {width:250px; height:80px;position:absolute;} | |
div:nth-child(1),div:nth-child(2) {top:50px; left:10px;} | |
div:nth-child(3),div:nth-child(4) {top:50px; left:300px;} | |
div:nth-child(5),div:nth-child(6) {top:50px; left:600px;} | |
/* |
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
/** | |
* Playing with crossfades | |
*/ | |
div {width:250px; height:80px;position:absolute;} | |
div:nth-child(1),div:nth-child(2) {top:50px; left:10px;} | |
div:nth-child(3),div:nth-child(4) {top:50px; left:300px;} | |
div:nth-child(5),div:nth-child(6) {top:50px; left:600px;} | |
/* |
OlderNewer