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

Animation Repeat #5

Closed
hueitan opened this issue Jan 23, 2014 · 5 comments
Closed

Animation Repeat #5

hueitan opened this issue Jan 23, 2014 · 5 comments

Comments

@hueitan
Copy link

hueitan commented Jan 23, 2014

How about adding a repeat that can scroll again when scroll to the position.

<h1 data-scrollreveal="enter from the top and move 50px over 1.33s repeat"> 
    Foo 
</h1>
@jlmakes
Copy link
Owner

jlmakes commented Jan 23, 2014

So the element fades in when it scrolls into the viewport—but then fades out when it leaves the viewport? (so it can reveal again upon entering the viewport?)

I was inspired by the cbpScroller which actually behaves this way. I like it.

@hueitan
Copy link
Author

hueitan commented Jan 23, 2014

Yes, cool for that !

@cbleslie
Copy link

Just thought I would put in my 0.2 bitcoins; I think as far as syntax for the animation is concerned perhaps "rewind"?

@jlmakes
Copy link
Owner

jlmakes commented Jan 27, 2014

One idea could be using every time vs. once as an optional parameters to control this behavior. e.g:

<foo data-scrollreveal="enter left over 0.3s once">
<foo data-scrollreveal="enter left over 0.3s every time">

@jtwalters
Copy link

Another way to describe this behavior could be reset, like below:

<foo data-scrollreveal="enter left over 0.3s with reset">

the word "with" could be optional.

jlmakes pushed a commit that referenced this issue Feb 13, 2014
@jlmakes jlmakes removed bug labels Apr 23, 2014
@jlmakes jlmakes changed the title repeat ? Animation Repeat Oct 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants