Last active
July 27, 2016 16:45
-
-
Save adamshaylor/767a6eb8e88e671fa0644d93d7859fe8 to your computer and use it in GitHub Desktop.
Hypothetical @transition syntax
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
@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