nnattawat / flip

A lightweight jQuery plugin to make 3D card flipping animation
Other
627 stars 312 forks source link

Trigger flip automatically after being on the page for certain time #90

Closed sajpasa closed 8 years ago

sajpasa commented 8 years ago

Hi, is it possible to trigger click automatically after being in the page for 30 seconds or so. I tried using following code but no luck so far $(document).ready(function() { setTimeout(function() { $(".flipImage").flip({ trigger: 'manual', speed: 800 }); }, 6000); });

Thanks

JemarJones commented 8 years ago

There's no built in functionality for this. You'll need to detect when 30 seconds have passed and then just manually trigger.

sajpasa commented 8 years ago

Ok, but I cant seem to get the manual trigger to work. The code above for manual trigger is correct, right?

JemarJones commented 8 years ago

In the code you have you have setup a flip object which can be triggered manually, but you haven't actually triggered a flip. To trigger a flip you would execute $(".flipImage").flip(true); Please see the documentation in the future.

sajpasa commented 8 years ago

My bad, thanks for the help!