locomotivemtl / locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.
https://locomotivemtl.github.io/locomotive-scroll
MIT License
7.97k stars 1.12k forks source link

utkarsh95-dev@utkarshhbhatnagar95@gmail.com #508

Open utkarsh95-dev opened 1 year ago

utkarsh95-dev commented 1 year ago

in line no. 1892 in the getTranslate( ) function of the code I added double check to see if "transform" variable actually has an value before assigning the result of the subsequent match operation to "mat" variable it's done to make sure that "transform" isn't undefined or null.