scrollreveal icon indicating copy to clipboard operation
scrollreveal copied to clipboard

Question: Is there a way to reveal elements diagonally?

Open alenart91 opened this issue 9 years ago • 5 comments

I have some images I would like to reveal coming from the top middle of the screen to the lower right using a diagonal reveal. Is this possible using scrollreveal?

alenart91 avatar Nov 30 '17 07:11 alenart91

This has come up before as a feature request (#123), but it's currently not possible.

4.0 is launching soon, and I don't think any new features will make it into that release.

That said, I did just take a quick look at how this could be implemented, and it doesn't seem too bad. I like the idea, so I‘ll take a second look at this for a 4.1 release in early 2018.

Thanks @atlas24

jlmakes avatar Nov 30 '17 18:11 jlmakes

Agreed, that and a simple horizontal option would be great.

stephenmcghee avatar Dec 01 '17 16:12 stephenmcghee

Would you explain more of what you have in mind @SRTM?

jlmakes avatar Dec 01 '17 17:12 jlmakes

@jlmakes Currently, when you use options.distance, that only alters the vertical distance (y-axis) of an element. It would be great if you could also alter the horizontal distance (x-axis).

For example, having elements fade in from the left or right, rather than up or down. Usually I have to rely on adding a separate custom css animation for that.

Thanks :)

stephenmcghee avatar Dec 01 '17 21:12 stephenmcghee

@SRTM Check this out

jlmakes avatar Dec 01 '17 23:12 jlmakes