我正在尝试为超大画廊添加ken burns效果。我想简单地添加以下代码:
.image img {
animation:move 7s ease infinite; /* Change this to alternate to stop the loop. */
-ms-animation:move 7s ease infinite;
-webkit-animation:move 7s ease infinite;
-0-animation:move 7s ease infinite;
-moz-animation:move 7s ease infinite;
position: absolute;
left:-150px;
top:-150px;
}
@-webkit-keyframes move {
from {
transform: scale(0.9);
-ms-transform: scale(0.9); /* IE 9 */
-webkit-transform: scale(0.9); /* Safari and Chrome */
-o-transform: scale(0.9); /* Opera */
-moz-transform: scale(0.9); /* Firefox */
}
to {
transform: scale(1.0);
-ms-transform: scale(1.0); /* IE 9 */
-webkit-transform: scale(1.0); /* Safari and Chrome */
-o-transform: scale(1.0); /* Opera */
-moz-transform: scale(1.0); /* Firefox */
}
}
具体来说我想将它添加到supersized.css文件
* { margin:0; padding:0; }
img { border:none; }
#supersized-loader { position:absolute; top:50%; left:50%; z-index:0; width:60px; height:60px; margin:-30px 0 0 -30px; text-indent:-999em; background:url(../img/progress.gif) no-repeat center center;}
#supersized { display:block; position:relative; left:0; top:0; overflow:hidden; z-index:-1; height:100%; width:100%; margin:0; padding:0;
}
#supersized img { width:auto;
height:auto;
display:none;
outline:none;
border:none;
margin:0 auto;
overflow:hidden;
position: relative;
}
#supersized.speed img { -ms-interpolation-mode:nearest-neighbor; image-rendering: -moz-crisp-edges; } /*Speed*/
#supersized.quality img { -ms-interpolation-mode:bicubic; image-rendering: optimizeQuality; } /*Quality*/
#supersized li { display:block; list-style:none; z-index:-30; position:fixed; overflow:hidden; top:0; left:0; width:100%; height:100%; background:#111; }
#supersized a { width:100%; height:100%; display:block; }
#supersized li.prevslide { z-index:-20; }
#supersized li.activeslide { z-index:-10; }
#supersized li.image-loading { background:#111 url(../img/progress.gif) no-repeat center center; width:100%; height:100%; }
#supersized li.image-loading img{ visibility:hidden; }
#supersized li.prevslide img, #supersized li.activeslide img{
}
如果有人可以帮助我将代码添加到.css文件中,或者如何以最佳方式添加ken burns效果,那会很棒。
谢谢!
多米尼克