javascript - Automatic Image zoom with easy and out -


can me how can on page:

marriottgrandcaymanbeachhouse.com

i want on website automatic zoom of images without hover or click. ease , out zooming function infinite.

i use class don`t know how activate it.

    .zoom.visible > img {   -webkit-animation-duration: 30s;   animation-duration: 30s;   -webkit-animation-fill-mode: both;   animation-fill-mode: both;   -webkit-animation-iteration-count: infinite;   animation-iteration-count: infinite;   -webkit-animation-name: move;   animation-name: move;   animation-direction: alternate;   -moz-animation-direction: alternate;   -webkit-animation-direction: alternate;   -o-animation-direction: alternate;   -ms-transform-origin: middle center;   transform-origin: middle center;   -webkit-transform-origin: middle center;   -o-transform-origin: middle center;   -moz-transform-origin: middle center; } 

unfortunately dont`t know search in google , hope can push me in right direction or has code example me.

copying necessary parts out of website, need

css:

.zoom.visible > img {     -webkit-animation-duration: 30s;     animation-duration: 30s;     -webkit-animation-fill-mode: both;     animation-fill-mode: both;     -webkit-animation-iteration-count: infinite;     animation-iteration-count: infinite;     -webkit-animation-name: move;     animation-name: move;     animation-direction: alternate;     -moz-animation-direction: alternate;     -webkit-animation-direction: alternate;     -o-animation-direction: alternate;     -ms-transform-origin: middle center;     transform-origin: middle center;     -webkit-transform-origin: middle center;     -o-transform-origin: middle center;     -moz-transform-origin: middle center; } .zoom > img {     height: auto!important;     width: 100%!important; }  @-webkit-keyframes move {   {     transform: scale(1);     text-indent: -9999px;     ms-transform: scale(1);     -webkit-transform: scale(1);     -o-transform: scale(1);     -moz-transform: scale(1);   }   {     transform: scale(1.15);     -ms-transform: scale(1.15);     -webkit-transform: scale(1.15);     -o-transform: scale(1.15);     -moz-transform: scale(1.15);   } } @keyframes move {   {     transform: scale(1);     -ms-transform: scale(1);     -webkit-transform: scale(1);     -o-transform: scale(1);     -moz-transform: scale(1);   }   {     transform: scale(1.15);     -ms-transform: scale(1.15);     -webkit-transform: scale(1.15);     -o-transform: scale(1.15);     -moz-transform: scale(1.15);   } } 

which works on image same html structure :

<div class="zoom visible imagen1" style="opacity: 1; margin-top: 0px; height: 678px;">     <img src="http://placehold.it/800x600" alt="" /> </div> 

demo: http://jsfiddle.net/9hwk7jtu/


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -