Last active
July 23, 2022 15:40
-
-
Save divienginesupport/5d73c5e356192f6c6f1caceb15d47a4d to your computer and use it in GitHub Desktop.
Summer Sale Divi Ken Burns Effect
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
/* DIVI ENGINE KEN BURNS */ | |
.de-ken-burns { | |
-webkit-animation: summersaleburns 30s ease-out both; /* You can change the duration by changing the 30s here */ | |
animation: summersaleburns 30s ease-out both; /* You can change the duration by changing the 30s here */ | |
animation-iteration-count: infinite; /* This makes the effect loop forever */ | |
} | |
/* Divi Engine Ken Burns Animation Keyframes */ | |
@-webkit-keyframes summersaleburns { | |
0% { | |
-webkit-transform: scale(1) translate(0, 0); | |
transform: scale(1) translate(0, 0); | |
-webkit-transform-origin: 84% 84%; | |
transform-origin: 84% 84%; | |
} | |
50% { | |
-webkit-transform: scale(1.25) translate(20px, 15px); | |
transform: scale(1.25) translate(20px, 15px); | |
-webkit-transform-origin: right bottom; | |
transform-origin: right bottom; | |
} | |
100% { | |
-webkit-transform: scale(1) translate(0, 0); | |
transform: scale(1) translate(0, 0); | |
-webkit-transform-origin: 84% 84%; | |
transform-origin: 84% 84%; | |
} | |
} | |
@keyframes summersaleburns { | |
0% { | |
-webkit-transform: scale(1) translate(0, 0); | |
transform: scale(1) translate(0, 0); | |
-webkit-transform-origin: 84% 84%; | |
transform-origin: 84% 84%; | |
} | |
50% { | |
-webkit-transform: scale(1.25) translate(20px, 15px); | |
transform: scale(1.25) translate(20px, 15px); | |
-webkit-transform-origin: right bottom; | |
transform-origin: right bottom; | |
} | |
100% { | |
-webkit-transform: scale(1) translate(0, 0); | |
transform: scale(1) translate(0, 0); | |
-webkit-transform-origin: 84% 84%; | |
transform-origin: 84% 84%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment