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

Update to the plugin #99

Open
mossad opened this issue Sep 12, 2016 · 1 comment
Open

Update to the plugin #99

mossad opened this issue Sep 12, 2016 · 1 comment

Comments

@mossad
Copy link

mossad commented Sep 12, 2016

hi,
I updated your code to set initialDelay by html attribute this will reduce the jquery definitions
don't need to write $(".tlt_1"), $(".tlt_2")....etc

The Markup will be
-h2 textillate="3000" data-in-effect="rollIn" >Welcome !!!</h2-

//Javascript code

if(jQuery('[textillate]').length>0){
jQuery('[textillate]').each(function (i, el) {
    var current = jQuery(el), current_id = "textillate_" + current.attr("textillate");
    current.attr('id', "textillate_" + current.attr("textillate"));      
    jQuery("#" + current_id).textillate({
        initialDelay: jQuery(this).attr("textillate")
    });
});}
@Tritek
Copy link

Tritek commented Nov 2, 2017

@mossad
Where i can paste it? After last line?

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