get current element position in css using jquery code example
Example 1: jquery get relative position of element
//relative Position
let rel = $('.someClass').position();
//absolute Position
let abs = $('.someClass').offset();
Example 2: jquery get left position
var position = p.position();
var left = position.left; '<-- left value for p