Skip to content

Instantly share code, notes, and snippets.

@adamshaylor
Last active July 27, 2016 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamshaylor/767a6eb8e88e671fa0644d93d7859fe8 to your computer and use it in GitHub Desktop.
Save adamshaylor/767a6eb8e88e671fa0644d93d7859fe8 to your computer and use it in GitHub Desktop.
Hypothetical @transition syntax
@transition from (.button:not(.button-depressed)) to (.button.button-depressed) {
background-color: red;
transition-delay: .2s;
transition-duration: .7s;
}
@transition from (.button.button-depressed) to (.button:not(.button-depressed)) {
background-color: black;
transition-duration: .2s;
}
@transition from (.button:not(.button-depressed) .button-arrow) to (.button.button-depressed .button-arrow) {
transform: rotate(180deg);
transition-duration: .1s;
transition-timing-function: ease-in-out;
}
@transition from (.button.button-depressed .button-arrow) to (.button:not(.button-depressed) .button-arrow) {
transform: rotate(0deg);
transition-duration: .1s;
transition-timing-function: ease-in-out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment