dixonandmoe / rellax

Lightweight, vanilla javascript parallax library
https://dixonandmoe.com/rellax/
MIT License
7.06k stars 878 forks source link

Use getComputedStyle() #175

Open adamrutter opened 4 years ago

adamrutter commented 4 years ago

Several issues (#76, #142, #148) talk about the inability to use the transform property in your stylesheet as it gets overridden by rellax.

Multiple solutions are proposed (wrapper divs, inline styles, setting any additional transforms in JavaScript). However, it seems to me the best solution is using getComputedStyle(), as mentioned in #148, so we can use transform in our stylesheet as we usually would.

Would you consider a pull request adding this feature?

kevadamson commented 4 years ago

+1

kareemsulttan commented 3 years ago

Can you provide an example for that method, please?