【发布时间】:2016-11-05 04:21:57
【问题描述】:
当用户将鼠标悬停在图像上时,我想使用 animate.css 淡入/淡出内容。
我正在尝试找出将类从 mouseenter 上的“FadeIn”和“FadeInUp”切换到 mouseleave 上的“FadeOut”和“FadeOutDown”的最佳方式。
CSS
.overlay{
position: absolute;
top: 0;
height: 100%;
width: 100%;
background: rgba(40,40,40,0.88);
left: 0;
padding: 10px;
text-align: left;
display: none;
}
.col-sm-6:hover .overlay{
display: block;
}
.overlay h2{
font-size: 20px;
color: #fff;
}
.overlay p{
color: #bbbbbb;
}
.linkbox{
position: absolute;
height: 50px;
bottom: 0;
left: 0;
background: #000;
width: 100%;
padding: 16px;
text-align: left;
color: #fff;
}
.caption{
display: none;
}
任何帮助/建议/建议将不胜感激!
【问题讨论】:
标签: jquery html css twitter-bootstrap animate.css