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

methods to lock the elements once finished the animation #24

Open
pandaskii opened this issue Nov 5, 2012 · 0 comments
Open

methods to lock the elements once finished the animation #24

pandaskii opened this issue Nov 5, 2012 · 0 comments

Comments

@pandaskii
Copy link

Hi,

We are wandering any methods to lock the animations once the animations finished.

Currently we are using onBlockChange(function() {}

such as the following:

However, it is buggy to simply overwrite the existing animate

        if ($('#'+Site.scrollorama.settings.blocks.eq(i).attr('id')).hasClass('block_noactive')) {
            if (i == '0') {
                Site.scrollorama.animate('.hello_lightbulb',{ duration: 200, property:'top', start:410, end: 410 });
                Site.scrollorama.animate('.hello_head',{ duration: 200, property:'left', start:-12,end: -12 });
                Site.scrollorama.animate('.hello_plane',{ duration: 200, property:'left', start:0, end: 0 });
                $('.hello_flame').each(function() {
                    Site.scrollorama.animate($(this),{ delay:200, duration: 140, property:'zoom', start:1 });
                    Site.scrollorama.animate($(this),{ delay:200, duration: 140, property:'opacity', start:1 });
                    Site.scrollorama.animate($(this),{ delay:200, duration: 140, property:'top', start:418 });
                });
            }
        }
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