How to use textillate.js with Hype?

(Pete) #1

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


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.

(Pete) #3

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)

(Mark Hunte) #4

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>

(Pete) #5

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

(Mark Hunte) #6

Just call another Javascript.

(Pete) #7

How? (16.4 KB)

(Mark Hunte) #8

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

(Pete) #9

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

(Mark Hunte) #10


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

(Pete) #11

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)

(Mark Hunte) #12

It looks like you have not tried what I said ?

(Pete) #13

It didn’t work for me.

(Mark Hunte) #14

Post the one that did not work…

(Pete) #15

Here you go. (16.6 KB)

(Mark Hunte) #16

I do not understand. Whats not working…?

(Pete) #17

AHH The OUT is not working?

(Mark Hunte) #18

Works here…!.

(Pete) #19

Oh yeah it does now. Muhaha :slight_smile:

(Mark Hunte) #20

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