I'm very new to jQuery and I'm trying to use a jQuery text effects plugin called Textillate. (documentation can be found here: https://github.com/jschr/textillate)
The problem is that the inEffects
property description on the website doesn't describe how to hide the content before the effect takes place. I have set initialDelay
to 6000
, which means the effect happens 6000ms after the page loads. Unfortunately, the text is shown during these 6000ms and I need it to be hidden until the effect begins. I assumed that inEffects['hidden']
would work, but it doesn't. Does anyone have any suggestions? My full script is listed below:
<script type="text/javascript">
$(function textillate() {
$('.storycontent').textillate(
{
initialDelay: 6000,
inEffects: ['hidden'],
in: {
effect: 'rotateInDownLeft'
}
});
});
</script>
I also tried using $(.storycontent).hide(6000);
but that doesn't seem to be the solution either. It seems that the effect starts right away and then the content just fades away.