使用CSS淡出左大动画效果
要使用CSS在图像上实现FadeDownLeftBigAnimationEffect,您可以尝试运行以下代码-
示例
<html>
<head>
<style>
.animated {
background-image: url(/css/images/logo.png);
background-repeat: no-repeat;
background-position: left top;
padding-top:95px;
margin-bottom:60px;
-webkit-animation-duration: 10s;
animation-duration: 10s;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
}
@-webkit-keyframes fadeOutLeftBig {
0% {
opacity: 1;
-webkit-transform: translateX(0);
}
100% {
opacity: 0;
-webkit-transform: translateX(-2000px);
}
}
@keyframes fadeOutLeftBig {
0% {
opacity: 1;
transform: translateX(0);
}
100% {
opacity: 0;
transform: translateX(-2000px);
}
}
.fadeOutLeftBig {
-webkit-animation-name: fadeOutLeftBig;
animation-name: fadeOutLeftBig;
}
</style>
</head>
<body>
<div id="animated-example" class="animated fadeOutLeftBig"></div>
<button onclick="myFunction()">Reload page</button>
<script>
function myFunction() {
location.reload();
}
</script>
</body>
</html>热门推荐
10 送离职同事简短祝福语
11 古风中考祝福语简短
12 创业大吉祝福语简短
13 毕业祝福语保安文案简短
14 新年祝福语小知识简短
15 同事们生日祝福语简短
16 水晶婚夫妻祝福语简短
17 冬季祝福语大全 简短的
18 祝福语女友文案简短霸气