Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/36.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 如何在淡入淡出过渡之前使旋转木马图像稍微缩放_Css_Twitter Bootstrap - Fatal编程技术网

Css 如何在淡入淡出过渡之前使旋转木马图像稍微缩放

Css 如何在淡入淡出过渡之前使旋转木马图像稍微缩放,css,twitter-bootstrap,Css,Twitter Bootstrap,我正在为一个班级建立一个网站,我喜欢www.sweetgreen.com这个网页,在淡入淡出过渡之前,他们的图像似乎会稍微放大。我得到了淡出,但它很快,并没有优雅地做到这一点。不过,我可能会想到一个,我想知道的是轻微的缩放效果,我已经检查了元素,并在我的rails应用程序的引导样式表中应用了一些类。这是我的部门 `<div class="item"> <%= link_to image_tag("carousel_img2.jpeg", :size => "1

我正在为一个班级建立一个网站,我喜欢www.sweetgreen.com这个网页,在淡入淡出过渡之前,他们的图像似乎会稍微放大。我得到了淡出,但它很快,并没有优雅地做到这一点。不过,我可能会想到一个,我想知道的是轻微的缩放效果,我已经检查了元素,并在我的rails应用程序的引导样式表中应用了一些类。这是我的部门

 `<div class="item">
     <%= link_to image_tag("carousel_img2.jpeg", :size => "1600x200", :alt =>
     "Slide2"), {:class => "img-responsive center-block", :alt => "Responsive  
      image"} %>
      <div class="carousel-caption text-center">

        </div>
`
“1600x200”,:alt=>
“Slide2”),{:class=>“img响应中心块”,:alt=>“响应
图像“}%>

我做了一个清晰的演示:

这个是基于Bootstrap3的:

第一种是使用
不透明度
。 对于正在使用
display

@-webkit-keyframes move {
from {
transform: scale(1, 1);
-ms-transform: scale(1, 1); /* IE 9 */
-webkit-transform: scale(1, 1); /* Safari and Chrome */
-o-transform: scale(1, 1); /* Opera */
-moz-transform: scale(1, 1); /* Firefox */
}
to {
transform: scale(1.05, 1.05);
-ms-transform: scalescale(1.05, 1.05); /* IE 9 */
-webkit-transform: scalescale(1.05, 1.05); /* Safari and Chrome */
-o-transform: scalescale(1.05, 1.05); /* Opera */
-moz-transform: scale(1.05, 1.05);/* Firefox */

}
}
.item .zoomin {
animation:move 7s ease infinite; 
-ms-animation:move 7s ease infinite;
-webkit-animation:move 7s ease infinite;
-0-animation:move 7s ease infinite;
-moz-animation:move 7s ease infinite;
background-color:Black;
left:-150px;
top:-150px;
}

它使用的第一个滑块也有缩放效果。

我明白了,你是从查看示例网站时获取css代码的吗?我也想添加打字,就像中间的那个网站,也有类似的效果。第二个链接正在工作。但是为什么第二个链接的第一个滑块没有得到缩放效果呢?