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>
Comments
Post a Comment