Last active
June 21, 2021 20:33
-
-
Save divienginesupport/f7d30b250ba428208401ab13687e3734 to your computer and use it in GitHub Desktop.
Divi Pure CSS Animation - Focus In
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
/* Pop-up CSS Animation Class to be added to the Divi module that you want to animate */ | |
.de-text-pop-up { | |
-webkit-animation: de-text-pop-up 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; | |
animation: de-text-pop-up 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both; | |
} | |
/* Keyframes for the Pop-up CSS Animation */ | |
@-webkit-keyframes de-text-pop-up { | |
0% { | |
-webkit-transform: translateY(0); | |
transform: translateY(0); | |
-webkit-transform-origin: 50% 50%; | |
transform-origin: 50% 50%; | |
text-shadow: none; | |
} | |
100% { | |
-webkit-transform: translateY(-50px); | |
transform: translateY(-50px); | |
-webkit-transform-origin: 50% 50%; | |
transform-origin: 50% 50%; | |
text-shadow: 0 1px 0 #cccccc, 0 2px 0 #cccccc, 0 3px 0 #cccccc, 0 4px 0 #cccccc, 0 5px 0 #cccccc, 0 6px 0 #cccccc, 0 7px 0 #cccccc, 0 8px 0 #cccccc, 0 9px 0 #cccccc, 0 50px 30px rgba(0, 0, 0, 0.3); | |
} | |
} | |
@keyframes de-text-pop-up { | |
0% { | |
-webkit-transform: translateY(0); | |
transform: translateY(0); | |
-webkit-transform-origin: 50% 50%; | |
transform-origin: 50% 50%; | |
text-shadow: none; | |
} | |
100% { | |
-webkit-transform: translateY(-50px); | |
transform: translateY(-50px); | |
-webkit-transform-origin: 50% 50%; | |
transform-origin: 50% 50%; | |
text-shadow: 0 1px 0 #cccccc, 0 2px 0 #cccccc, 0 3px 0 #cccccc, 0 4px 0 #cccccc, 0 5px 0 #cccccc, 0 6px 0 #cccccc, 0 7px 0 #cccccc, 0 8px 0 #cccccc, 0 9px 0 #cccccc, 0 50px 30px rgba(0, 0, 0, 0.3); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment