I'm trying to implement a 3D matrix transform on an image. The transform works correctly as I hover over the image. However, I can't seem to make it transition back to its original placement smoothly. When I leave the image after hovering it pops back into place quickly, not a smooth transition.
(Also, I'm trying to ultimately mirror this transition - to make the image bend to the right instead of the left...any ideas?)
Tried so many different solutions - any help would be great!
JSFiddle https://jsfiddle.net/0roefvye/
.rot {
width: 100px;
height: 100px;
background-color: black;
}
.rot:hover {
transform: matrix3d(0.9659258262890683, 0, 0.25881904510252074, 0, 0, 1, 0, 0, -0.25881904510252074, 0, 0.9659258262890683, 0, 0, 0, 0, 1);
transition-delay: 0s;
transition-duration: 2s;
transition-timing-function: ease;
}