Ken Burns zoom in effect using CSS -
i looking @ website-
and has nice zoom in (ken burns effect) on of images. smoothness of animation.
this css divs use-
.project .project__header .header__image { background-position: center center; background-size: cover; height: 100%; left: 0; position: absolute; top: 0; transform: scale(1); transition: transform 15s linear 0s; width: 100%; }
i tried doing similar not work me. missing?
you need have transition happen on hover. this: https://jsfiddle.net/kzam3lo7/
img { background-position: center center; background-size: cover; height: 100%; left: 0; position: absolute; top: 0; transform: scale(1); width: 100%; } img:hover { transform: scale(2); transition: transform 15s linear 0s; }
Comments
Post a Comment