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

Additional support for opacity [baked v3.0.0] #185

Closed
nohuex opened this issue Nov 6, 2015 · 3 comments
Closed

Additional support for opacity [baked v3.0.0] #185

nohuex opened this issue Nov 6, 2015 · 3 comments

Comments

@nohuex
Copy link

nohuex commented Nov 6, 2015

Not sure whether this is already achievable, but it would be great if the fading in effect would take into account an element set opacity.

For example, an element in my page is set to appear at opacity: 0.6 in the CSS. Can the Reveal transition start at 0 and stop at 0.6? It seems it goes all the way to 1, then quickly drops to 0.6.

Thank you for such a great plugin.

@jlmakes
Copy link
Owner

jlmakes commented Nov 7, 2015

Interesting!

It’s already possible to change the configuration (including target opacity) for specific elements, but it sounds like you want ScrollReveal to detect the computed opacity automatically.

I think that’s a pretty cool idea! I’ll play around with window.getComputedStyle( el ) and see about adding something like this in.

Thanks @nohuex!

🙇

@jlmakes
Copy link
Owner

jlmakes commented Dec 2, 2015

Baked this into 3.0, and I’m also looking into doing the same for rotate and scale transforms.

re: Get Value of CSS Rotation through JavaScript

Thanks again @nohuex!

@nohuex
Copy link
Author

nohuex commented Dec 2, 2015

No, thank you!

@nohuex nohuex closed this as completed Dec 2, 2015
@jlmakes jlmakes changed the title Additional support for opacity Additional support for opacity [baked v3.0.0] Jan 8, 2016
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

2 participants