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

html data api #52

Open
joomlolo opened this issue Sep 2, 2014 · 5 comments
Open

html data api #52

joomlolo opened this issue Sep 2, 2014 · 5 comments

Comments

@joomlolo
Copy link

joomlolo commented Sep 2, 2014

Hello,
sorry for my english,your work is very good,congratulations!
I have a question,Is it possible using "data" attribute, (data like this)

h1 class=“title” data-in-effect="flash" data-in-duration ? data-in-loop? >My First flash Example

and to put "shuffle" attribute , "loop" attribute, "sync", duration and more etc etc
there is just data-in-effect and data-out-effect ? or there are other attributes ? can I have a list please? I prefer to use "data-" instead of jQuery to choose loop and shuffle etc..and I found nowhere a list on wiki or other
thanks a lot
Regards

@jschr
Copy link
Owner

jschr commented Sep 2, 2014

any of the options you see in the document should be able to be used with the html data api as well. So yes, data-in-shuffle="true" or data-in-sync="true" should also work.

@joomlolo
Copy link
Author

joomlolo commented Sep 2, 2014

ok thank you a lot for your quick answer! your work is very great,thank you a lot for all that,thank you!

@joomlolo
Copy link
Author

joomlolo commented Sep 2, 2014

hello,I manage for all except for the loop attribute, I already try
data-in-loop="true" and
data-loop="true",
but it doesn't work,an idea ?
thanks a lot except this, everything is running good,thanks!
it is not a problem if you have no the time,I can do with jQuery instead,just for this,
Thanks
Regards,
Laurent

@jschr
Copy link
Owner

jschr commented Sep 2, 2014

There was a small bug with the data-api and top level options such as loop. Grab the latest version (0.3.2) and let me know if that is fixed.

Thanks

@joomlolo
Copy link
Author

joomlolo commented Sep 3, 2014

ok so I grab the latest version, thanks
"data-loop" is ok but add a out effect(hinge I think) with the default script
(possible to disable the out effect ? just to know)

jQuery(function () {
jQuery('.tilt').textillate();
})

==========="data-in-loop" not working============

in this other script if you put "data-loop" in html data "data-loop:false"

jQuery('.tlt').textillate({ in: {effect: 'fadeIn'}, out: { effect: 'fadeOut', shuffle: true }, loop: true });

it is not working, perhaps is normal because there is "loop:true" inside jQuery (just to show you)

so data-loop is working but add a second effect(hinge) with the default script(perhaps normal because looping so people perhaps need to disable the out effect I don t know)
data-in-loop, not working
if you have a loop pramater in jQuery ,html data api is not working (data-loop) jQuery is stronger.
for "data-out-loop" i don't know yet.
sorry for my english Jschr, I try to explain.
So maybe everything is working normal now, thank you a lot!
if you need,
tell me what you want me to do, I can send you a link of my test site if you want.

Thanks a lot

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