Here is the structure of my current setup:
<div class="wrapper">
<div class="first">
<a class="button" href="">click</a>
</div>
<div class="second">
<div class="third">
Stuff
<div>
</div>
</div>
I am trying to achieve this: upon clicking the a tag, I want the .third div to animate.
Currently, this is what I have written:
button.click ->
third.animate
left: '+=100%'
However, the issue arises when there are multiple wrappers on the page. Upon clicking the button, all '.third' div elements in each wrapper animate. How can I specifically target and animate only the desired one?
Your assistance is greatly appreciated!