MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / getOffset

Function getOffset

assets/js/unsub_page.js:42–49  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

40var eyeFollow = (function() {
41
42 function getOffset(el) {
43 console.log(el)
44 el = el.getBoundingClientRect();
45 return {
46 x: el.left + window.scrollX,
47 y: el.top + window.scrollY
48 };
49 }
50
51 function moveEye(eye) {
52 var eyeOffset = getOffset(eye);

Callers 1

moveEyeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected