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

Animate on IsInView #3

Open
ktorti opened this issue Sep 7, 2016 · 0 comments
Open

Animate on IsInView #3

ktorti opened this issue Sep 7, 2016 · 0 comments

Comments

@ktorti
Copy link

ktorti commented Sep 7, 2016

Two questions really if you still look at this repo.

  1. I'm still pretty new to JS, so how if I have 4 SVG's that need to be animated do I differentiate them? Do they all need to have different ID's and how would I reflect that in the JS file?
  2. Would you happen to know how to delay the animation of the SVG's until you scroll to them? Is it something I would have to add into the drawfillsvg.js file or can I add it into my animate file with this format somehow?
    $('.timeline > .timeline-inverted > .timeline-panel').css('opacity', 0).one('inview', function(isInView){
    if (isInView) {$(this).addClass('animated fadeInRight').css('opacity', 1);}
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