I'm strictly limited to using YUI/Javascript along with HTML and possibly CSS as long as it runs with IE.
HTML:
<div id="test" style="visibility:hidden">
<p><img src=../../included_files/VGirlMega.png></p>
<p><img src=../../included_files/ReVGirlMega.png></p>
</div>
<script src="../../included_files/myjs.js"></script>
Javascript:
window.onload=(function(cback){
return function(ev){
cback && cback.call(window,ev);
YUI().use('transition',function(Y){
var cntr=1; //seconds
Y.all('#test p').setStyles({'opacity':0,
'marginTop':'25px',
'background':'none repeat scroll 0 0 #fff',
'fontSize':'21px'}).each(function(nd){
nd.transition({
easing: 'ease-out', //easing method
duration: 9, // seconds
delay:cntr, //this is our counter to stagger the p tags showing
opacity:1
});
cntr+=14.0; //increase the delay by half a second
});
Y.one('#test').setStyle('visibility','visible');
});
}
})(window.onload);
As you can see, I had someone help me with the Javascript, because I'm using it in an E-Learning Authoring Tool, which is quite specific over what works and what doesn't. As it stands of course, the images currently load one below the other. I'm thinking that I may be done over simply because of the paragraph tags?
I've looked into how others have achieved this, but while they're usually going for the same concept, the implementation isn't near the same and requires a lot more css/java.
For example this fiddle: http://jsfiddle.net/k9e5f/2/ Found in this thread: jQuery overlapping images during transition (trying to make background transition)
Would it be difficult to adapt what I have, without basically starting over?
p.s. Jquery isn't an option for this :(
Thanks for any help.