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

How to override options? #38

Open
jafarpagerjaya opened this issue Nov 14, 2020 · 0 comments
Open

How to override options? #38

jafarpagerjaya opened this issue Nov 14, 2020 · 0 comments

Comments

@jafarpagerjaya
Copy link

jafarpagerjaya commented Nov 14, 2020

`$.fn.Morphext.defaults = {
animation: "fadeInLeft"
};

let morp = $('.js-rotating').Morphext();
let dataMorp = morp.data("plugin_Morphext");
console.log(dataMorp);
`
i'm try to override it but when it check the animation has't changed

By the way i want to use it in the selector '.js-rotating' that will trigger when event handler is mousehover. So the next is using this dataMorp.start() function that why i not set the animation on this line $('.js-rotating').Morphext() this is just for check current animation;

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

1 participant