使用CSS淡入左大动画效果
要使用CSS在图像上实现左淡入淡大动画效果,您可以尝试运行以下代码-
示例
<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 fadeInLeftBig {
0% {
opacity: 0;
-webkit-transform: translateY(-2000px);
}
100% {
opacity: 1;
-webkit-transform: translateY(0);
}
}
@keyframes fadeInLeftBig {
0% {
opacity: 0;
transform: translateY(-2000px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
.fadeInLeftBig {
-webkit-animation-name: fadeInLeftBig;
animation-name: fadeInLeftBig;
}
</style>
</head>
<body>
<div id="animated-example" class="animated fadeInLeftBig"></div>
<button onclick="myFunction()">Reload page</button>
<script>
function myFunction() {
location.reload();
}
</script>
</body>
</head>热门推荐
3 入学校简短祝福语
10 新婚祝福语大全简短经典
11 良师益友祝福语简短
12 新年送老师简短祝福语
13 新年祝福语长辈简短红包
14 毕业祝福语简短英语小学
15 新年发给客户祝福语简短
16 开业祝福语简短大气的
17 冬季祝福语大全 简短的
18 新年简单祝福语简短好看