Created
February 6, 2016 13:08
-
-
Save Hikari9/bad415f96c4dfc8ee51e to your computer and use it in GitHub Desktop.
Hover float CSS script. TODO: hover-float-down, hover-float-right.
This file contains hidden or 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
.hover-float { | |
margin-top: 10px !important; | |
margin-bottom: 0px !important; | |
} | |
.hover-float:hover { | |
margin-top: 0px !important; | |
margin-bottom: 10px !important; | |
} | |
.hover-float-child > * { | |
margin-top: 10px !important; | |
margin-bottom: 0px !important; | |
} | |
.hover-float-child:hover > * { | |
margin-top: 0px !important; | |
margin-bottom: 10px !important; | |
} | |
.hover-float-left { | |
margin-left: 10px !important; | |
margin-right: 0px !important; | |
} | |
.hover-float-left:hover { | |
margin-left: 0px !important; | |
margin-right: 10px !important; | |
} | |
.hover-float-left-child > * { | |
margin-left: 10px !important; | |
margin-right: 0px !important; | |
} | |
.hover-float-left-child:hover > * { | |
margin-left: 0px !important; | |
margin-right: 10px !important; | |
} | |
.hover-float, | |
.hover-float-child, | |
.hover-float-left, | |
.hover-float-left-child, | |
.hover-float:hover, | |
.hover-float-child:hover, | |
.hover-float-left:hover, | |
.hover-float-left-child:hover { | |
-webkit-transition: 0.3s ease; | |
-ms-transtion: 0.3s ease; | |
transition: 0.3s ease; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment