Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No out animation #112

Open
CarloMartini opened this issue Sep 5, 2017 · 1 comment
Open

No out animation #112

CarloMartini opened this issue Sep 5, 2017 · 1 comment

Comments

@CarloMartini
Copy link

Hello,
I would like to have the same animation I see on the demo page, when settings:

fadeInLeft, sequence
fadeOutLeft, reverse

But I just see the IN animation. The out never starts, and the JS console is just silent. Can you help me?

<p>Lorem <span class="tlt">ipsum dolor sit amet, consectetur adipisicing </span>elit.</p>

<script>
$(function () {
    $('.tlt').textillate({
in: { effect: 'fadeInLeft' },
out: { effect: 'fadeOutLeft', reverse:true }
});
})
</script>
@jschr
Copy link
Owner

jschr commented Sep 5, 2017

hey @CarloMartini,

The out effects are only run as a way to transition to the next in effect. You can use empty text as the next transition.

<h1 class="tlt">
    <ul class="texts">
         <li>Some Title</li>   
         <li> </li>
    </ul>
</h1>

https://stackoverflow.com/a/17428498/1249098

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants