【发布时间】:2014-08-18 08:12:30
【问题描述】:
我正在寻找一种在加载背景图像后启动文本动画的方法。具体来说,h1 元素应该在 div#image-bg 加载它的背景图像之后进行动画处理。我正在使用wow.js 为对象设置动画,开发人员的意图是在滚动时启动移动。要查看存在问题的完整网站,请访问 abbyaker.com。
这是我的 html 页面的精简版:
<html>
<head>
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/animate.css">
</head>
<body>
<div id="container">
<!-- - - - - - - - - - - - - - Intro - - - - - - - - - - - - - -->
<div id="headwrap">
<div id="image-bg"></div>
<div id="intro">
<h1 class="white wow fadeInUp" data-wow-duration="700ms" data-wow-delay="400ms">Hello</h1>
</div>
</div>
</div>
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
</body>
感谢您的帮助!
【问题讨论】:
-
我会试试
<body onload="function() { new WOW().init(); }">
标签: javascript image animation