I'm using a photo website which allows me to customise with CSS. I'm using the code below to give a ken burns effect (zooms and pans the image).. .however it currently zooms/pans to the top right.. I'd like to adjust the code so it randomly changes which direction it pans/zooms. Anyone able to help? thanks
Code:
@keyframes kenburns {
0% {
opacity: 0;
}
5% {
opacity: 1;
}
95% {
transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
-webkit-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
-ms-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
-moz-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
animation-timing-function: ease-in;
opacity: 1;
}
100% {
-webkit-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
-ms-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
-moz-transform: scale3d(1.5, 1.5, 1.5) translate3d(-190px, -120px, 0px);
transform: scale3d(2, 2, 2) translate3d(-170px, -100px, 0px)
opacity: 0;
}
}