Ken Burns zoom in effect using CSS -


i looking @ website-

http://melaniedaveid.com/

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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -