Stanko / react-plx

React parallax component, powerful and lightweight
https://muffinman.io/react-plx/
MIT License
689 stars 51 forks source link

Smoother effect using values with more decimals #77

Closed HyBDev closed 3 years ago

HyBDev commented 3 years ago

Hey and thanks for this solution! It's just the thing I searched for many weeks! I've an issue and I don't know how to do it with yours. I would like to smooth the transition between the start and the end values by using longer decimals transition values. How could I do it? Thanks! :) image

Stanko commented 3 years ago

For performance reasons values are rounded to two decimal places: https://github.com/Stanko/react-plx/blob/master/source/Plx.js#L387

Feel free to copy the code and change that one line. Cheers!

HyBDev commented 3 years ago

Thanks! :)