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
How to get almost no movement? #88
Comments
I use a "sort-of" workaround now.
|
Hi! So, first of all, I must say, I had some fun recreating the archive in codepen, so thank you for that 😅 (most of the code was copy/pasted tho, I just messed around with the shadows, gradients, etc...). Answering your question, and assuming that the element you were trying to make go slower was the Now, @moeamaya, my question is: Another thing I've noticed is that, different viewport sizes mean different ("real") speeds for the same speed setting. |
@p-realinho Yea those are completely artificial limits. Happy to remove them, but keep it in the documentation that it should be from -10 to 10. |
@moeamaya What's the original reason for those limits? I'm curious because I feel like |
@benface No good reason, just seemed to be the logical limits when I very first built Rellax back two years ago 🤷♀️. Yea if look above I said we could just remove them. |
@moeamaya Would you accept a PR that removes those limits completely? |
Yup! But add in the README about the relative range of those limits. |
I am trying to get an object to nearly don't move at all. How can achieve this?
Using
data-rellax-speed="-10" data-rellax-percentage="0"
gave me the best result, but is there another, cleaner way to get even less movement?As far as I understood it values above 0 mean the element is moving faster than the "default" speed, while values below 0 lead to a slower than "normal" speed movement, but correct me if I'm wrong here.
Be aware of the fact that I am using
position: absolute;
for every Element.I've attached an archive with the project in it so one can get a better understanding of my situation
web.zip
The text was updated successfully, but these errors were encountered: