I'm using Greensock animation to apply some extra text effects. But to do this, Greensock needs a <div> element to refer to.
Is there any easier way than simply wrapping the top and bottom of each passage in:
<div id="myelement" class="myelement">
All passage text goes here.
</div>
This works, but it needs to be done for every single passage.
EDIT: BTW, because I am using 1.4.2, I can edit the Header directly if that's an option over using JavaScript to mess with divs. I already have several custom divs inserted into the header.
Comments
Have you tried simply using the existing content wrapper element? You can add an ID and classes to it without incident. It could be that you cannot use it due to styling issues, however, my suggestion would be to try that first. For example:
If that proves unusable, then you can wrap the contents of the content wrapper element thus:
Regardless I'll try your suggestion.
I could have done this with css animation, but that would involve adding animation rules to each and every type of passage tag I have, bleh.