I am currently working on an animation where I need to change the color of an element in the center once a small circle touches it. Despite trying to use the position() method, it does not work as intended because I am using a :before for animating the div. Is there another approach I could take to achieve this or any other method to determine when the small circle intersects the larger one?
https://jsfiddle.net/pwqfh7ys/5/
html
<figure class="glob-wrapper">
<div class="goos">
<div class="goo"></div>
<div class="goo"></div>
<div class="goo"></div>
<div class="goo"></div>
<object type="image/svg+xml" data="./img/hello.svg" class="hello"></object>
</div>
<div class="blobs">
<div class="blob"></div>
</div>
</figure>
css