Created
May 7, 2014 20:07
-
-
Save vasilisvg/1464a18ea34f63d270d0 to your computer and use it in GitHub Desktop.
Transitions
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:last-of-type { | |
transition: 1s ease; /* ease, linear, ease-in, ease-in-out, ease-out */ | |
/* Zoek ook eens op http://cubic-bezier.com/ | |
Of op http://matthewlein.com/ceaser/ | |
*/ | |
top: 12vw; | |
background: hotpink; | |
} | |
article:hover div:last-of-type { | |
//transition: ; | |
} | |
article { | |
margin: 4em 0 0; | |
width: 90vw; | |
height: 30vw; | |
position: relative; | |
} | |
article:hover div { | |
left: 85vw; | |
color: white; | |
//transform: rotate(360deg); | |
} | |
div { | |
width: 10vw; | |
height: 10vw; | |
background: grey; | |
margin: .3em; | |
transition: 1s; | |
position: absolute; | |
left: 0; | |
text-align: center; | |
line-height: 10vw; | |
font-size: 3em; | |
} | |
ul { | |
clear: ; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<article> | |
<div>A</div> | |
<div>B</div> | |
</article> |
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
// alert('Hello world!'); |
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
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment