How to use textillate.js with Hype?

Would love to know how to load and use Textillate.js libary inside of Hype.

1 Like

Here’s the docs:

It looks like you would add jQuery to the head of your document,

<script src=""></script>

… create an ‘on scene load’ function to load:

$(function () {

Then create a rectangle with this inside:

<h1 class="tlt" data-in-effect="rollIn">Title</h1>

on that scene.

Cool I’ll try that. I think you are forgetting other library’s like if so, do I put them in the head of the doc?

doesn’t seem to work.
See Hype doc. (10.8 KB)

I could not find the cdn for lettering.js so just used the one on the textillate site.

	<link href="" rel="stylesheet">
	<script src=""></script>
	<script src=""></script>
	<script src=""></script>
1 Like

That did it Mark, Thank you! How would you actually set in a out effect based on a keyframe in the timeline?

Just call another Javascript.

How? (16.4 KB)

The same type of code but called from a Timeline action!!!.

Hmm I’m having trouble visualizing. How do you mean?


The docs are crap…

I worked this out.

You can put this in the first script.

  in: { effect: 'rollIn'},
  out: { effect: 'flipOutX'}

When run only the in will run. But the out is now setup to the effect.

To make the out work you later call ,



There are callbacks that can also be used if you want to run when the in is completed as well as events that you can add listeners for.

For more effect options it looks like you need to look at the animate.css docs

It works like this for the bounce up and having the script it how they have it. the Inner HTML is not keyframable? I want to change it at 5 sec Mark to out? (16.4 KB)

It looks like you have not tried what I said ?

It didn’t work for me.

Post the one that did not work…

Here you go. (16.6 KB)

I do not understand. Whats not working…?

AHH The OUT is not working?

Works here…!.

1 Like

Oh yeah it does now. Muhaha :slight_smile:

Also you do not need the data-in-effect="bounceInUp code in the innerHTML if you are doing effects it via the script

1 Like