我试图运行在页面加载的动画,但它不工作,我改变在页面加载与字体大小不透明度和其没有显示出效果jQuery的页面加载动画不能正常工作
$(".animation").animate({opacity: 0.1, font-size:20px}, 1500);
$(".animation").animate({opacity: 0.5, font-size:30px}, 500);
$(".animation").animate({opacity: 0.9, font-size:40px}, 100);
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<h1 class="animation">Checking</h1>
你在哪里写上述脚本?在document.ready中? –
工作小提琴https://jsfiddle.net/pajxq8bu/ –