Last active
February 12, 2018 12:52
-
-
Save diggeddy/8f6f2caa62471daf11807b4cf53aa36a to your computer and use it in GitHub Desktop.
Simple use of CSS Transform:Translate and Transition for intro animations on hover
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
/* Elementor - transform position for animated columns x 4 */ | |
.db-enter-left , | |
.db-enter-right , | |
.db-enter-top, | |
.db-enter-bottom { | |
transition: all 0.75s ease-in-out; | |
} | |
.db-window2:not(:hover) .db-enter-left { | |
transform: translate(-1000%); | |
transition-delay: 2s; | |
} | |
.db-window2:not(:hover) .db-enter-right { | |
transform: translate(1000%); | |
transition-delay: 2s; | |
} | |
.db-window2:not(:hover) .db-enter-bottom { | |
transform: translate(0,1000%); | |
transition-delay: 2s; | |
} | |
.db-window2:not(:hover) .db-enter-top { | |
transform: translate(0,-1000%); | |
transition-delay: 2s; | |
} | |
/* Addition to code to hide translated columns */ | |
.db-window2 { | |
overflow: hidden; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment