![]() |
Animated heading problems
I've created a heading with two animations - one repeats once and fades the text in, the second one changes the text's shadow opacity and repeats infinitely.
Problem one is since i put the animation in, the page itself now loads halfway down instead of at the top like normal. i think maybe it's the way i'm positioning the heading? i've tried relative, and leaving position out altogther but it didn't change anything. Two, i'm including both these animations in one ID - is this okay to do? When I first made it, it would do the fade and then the shadow, but now it seems to ignore the fade. could be related to first problem, i don't know. example code of how I'm animating: html Code:
<h1 id="posw">W</h1>Code:
h1{ position: absolute; |
Hi there backa,
the cause of the page loading "half way down" is the highlighted in red attribute here... Code:
coothead |
Thanks again, coothead!
It was the autofocus, although previously it was giving focus to the field while loading normally. Any other way i can get the first field focused? I put the transitions comma-separated on one line as below, and all is working now. Much appreciated. Code:
-moz-animation: fadein 2.6s linear 1, shadow 3s linear infinite; |
Hi there backa,
put this javascript in the head section of your document... Code:
<script type="text/javascript"> |
| All times are GMT +1. The time now is 07:53 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.