相关疑难解决方法(0)

CSS3 Animate Out of:悬停

我正在设置一个简单的动画,当您将鼠标悬停在图像上时会显示一些附加信息.jQuery备份部分编写并且工作正常,但我遇到的问题是当用户徘徊时让CSS3动画反向运行.

因此,当你在它中盘旋时效果很好,但只要你徘徊,元素就会消失.我想知道的是,当鼠标在其他地方徘徊时,是否有办法让它们向后动画.非常感谢!

#recent-work div { position: relative; width: 300px; height: 168px; overflow: hidden; }
                
                #recent-work div:hover .recent-project-type {  
                    animation-name: showType;
                    animation-duration: .5s;
                    animation-timing-function: ease;
                    animation-delay: 0;
                    animation-iteration-count: 1;
                    animation-direction: normal;
                    animation-play-state: running;
                    -moz-animation-name: showType;
                    -moz-animation-duration: .5s;
                    -moz-animation-timing-function: ease;
                    -moz-animation-delay: 0;
                    -moz-animation-iteration-count: 1;
                    -moz-animation-direction: normal;
                    -moz-animation-play-state: running;
                    -webkit-animation-name: showType;
                    -webkit-animation-duration: .5s;
                    -webkit-animation-timing-function: ease;
                    -webkit-animation-delay: 0;
                    -webkit-animation-iteration-count: 1;
                    -webkit-animation-direction: normal;
                    -webkit-animation-play-state: running;
                    top: 0;
                }
                
                #recent-work div:hover .recent-project-title {  
                    animation-name: showTitle;
                    animation-duration: .5s;
                    animation-timing-function: ease;
                    animation-delay: 0;
                    animation-iteration-count: 1;
                    animation-direction: normal;
                    animation-play-state: …
Run Code Online (Sandbox Code Playgroud)

css animation css3 keyframe

18
推荐指数
1
解决办法
2万
查看次数

标签 统计

animation ×1

css ×1

css3 ×1

keyframe ×1