JSFiddle - React, Tailwind, and code Playground

HTML

<div></div>

CSS

div {
    width: 400px;
    height: 400px;
    background: cornflowerblue;
    position: absolute;
}

JavaScript

jQuery.fn.showPos = function(){
    return this.append(this.offset().top+", "+this.offset().left+"<br>");
};

$("div")
  .offset({ top: 100, left: 100 })
  .showPos()
  .offset({ top: 100, left: 100 })
  .showPos()
  .offset({ top: 100, left: 100 })
  .showPos()
  .offset({ top: 100, left: 100 })
  .showPos();