JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
<svg viewBox="0 0 963 1053" fill="none" xmlns="http://www.w3.org/2000/svg">
<path   d="M126.8 4.90005C126.8 7.40005 124.8 9.50005 122.2 9.50005C119.6 9.50005 117.6 7.50005 117.6 4.90005C117.6 2.40005 119.6 0.300049 122.2 0.300049C124.8 0.300049 126.8 2.40005 126.8 4.90005Z" fill="white"/>
<path   d="M146.2 4.90005C146.2 7.40005 144.2 9.50005 141.6 9.50005C139 9.50005 137 7.50005 137 4.90005C137 2.40005 139 0.300049 141.6 0.300049C144.2 0.300049 146.2 2.40005 146.2 4.90005Z" fill="white"/>
<path   d="M165.7 4.90005C165.7 7.40005 163.7 9.50005 161.1 9.50005C158.6 9.50005 156.5 7.50005 156.5 4.90005C156.5 2.40005 158.5 0.300049 161.1 0.300049C163.6 0.300049 165.7 2.40005 165.7 4.90005Z" fill="white"/>
<path   d="M710.2 4.90005C710.2 7.40005 708.2 9.50005 705.6 9.50005C703.1 9.50005 701 7.50005 701 4.90005C701 2.40005 703 0.300049 705.6 0.300049C708.1 0.300049 710.2 2.40005 710.2 4.90005Z" fill="white"/>
<path   d="M729.6 4.90005C729.6 7.40005 727.6 9.50005 725 9.50005C722.5 9.50005 720.4 7.50005 720.4 4.90005C720.4 2.40005 722.4 0.300049 725 0.300049C727.6 0.300049 729.6 2.40005 729.6 4.90005Z" fill="white"/>
<path   d="M107.3 23.1C107.3 25.6 105.3 27.7 102.7 27.7C100.2 27.7 98.1001 25.7 98.1001 23.1C98.1001 20.6 100.1 18.5 102.7 18.5C105.3 18.5 107.3 20.6 107.3 23.1Z" fill="white"/>
<path   d="M126.8 23.1C126.8 25.6 124.8 27.7 122.2 27.7C119.6 27.7 117.6 25.7 117.6 23.1C117.6 20.6 119.6 18.5 122.2 18.5C124.8 18.5 126.8 20.6 126.8 23.1Z" fill="white"/>
<path   d="M146.2 23.1C146.2 25.6 144.2 27.7 141.6 27.7C139 27.7 137 25.7 137 23.1C137 20.6 139 18.5 141.6 18.5C144.2 18.5 146.2 20.6 146.2 23.1Z" fill="white"/>
<path   d="M165.7 23.1C165.7 25.6 163.7 27.7 161.1 27.7C158.6 27.7 156.5 25.7 156.5 23.1C156.5 20.6 158.5 18.5 161.1 18.5C163.6 18.5 165.7 20.6 165.7 23.1Z" fill="white"/>
<path   d="M185.1 23.1C185.1 25.6 183.1 27.7 180.5 27.7C177.9 27.7 175.9 25.7 175.9 23.1C175.9 20.6...

CSS

body{
  background:black;
}

JavaScript

var sticky = document.querySelectorAll('path');
sticky.forEach(function(elem){
  $(document).on('mousemove touch', function(e){
    moving(elem, e);
  });
});
function moving(el, e){
  var mX = e.pageX,
      mY = e.pageY;
  const item = $(el);

  const customDistance = item.data('distance') * 20 || 120;
  const centerX = item.offset().left + (item.width()/2);
  const centerY = item.offset().top + (item.height()/2);

  var deltaX = Math.floor((centerX - mX)) * -0.45;
  var deltaY = Math.floor((centerY - mY)) * -0.45;

  var distance = calculateDistance(item, mX, mY);

  if(distance < customDistance){
    TweenMax.to(item, 0.5, {y: deltaY, x: deltaX, scale:1.1});
    item.addClass('move');
  }
  else {
    TweenMax.to(item, 0.6, {y: 0, x: 0, scale:1});
    item.removeClass('move');
  }
}
function calculateDistance(elem, mouseX, mouseY) {
  return Math.floor(Math.sqrt(Math.pow(mouseX - (elem.offset().left+(elem.width()/2)), 2) + Math.pow(mouseY - (elem.offset().top+(elem.height()/2)), 2)));
}