使用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>热门推荐
4 孙媳妇祝福语简短
10 新年给妈妈简短祝福语
11 祝福语女友文案简短霸气
12 年底拜年祝福语大全简短
13 祝福语勤奋大全简短英语
14 怎样给人送祝福语简短
15 18岁的祝福语简短
16 新年祝福语简短的个性
17 新年祝福语简短句子
18 送给客户的祝福语 简短