Forum Documentation Showcase Pricing Learn more

You can animate individual RG cells!


#1

This is something I’ve been wanting to do for some time now, I’ve read a number of posts about people trying it and it was only till I just spotted a completely random comment on another post that stated:

“Try including the Current Cells Index in the ID Attribute. This will make it dynamic and specific to each unique cell in an RG”

That gave me this idea… so if it helps anyone trying to slide individual cells inside repeating groups then with a little JQuery, it can be done like this.


#2

Thanks for sharing @pork1977gm!


#3

No problems!


#4

Nice example. For another test, I’d like to see if you can combine this with a custom state so you can consolidate the buttons with a condition. (Ex. for a reveal effect).

(Ie. when first click is made, change a boolean to is_left_aligned = yes and re-position left. Then, when clicked again and is_left_aligned = yes, re-position right).


#5

I’ll have a play.


#6

Is that what you mean? I changed it now Dan


#7

That’s exactly it. Nicely done.


#8

There’s another example with a slide if that’s useful to you… I suppose you could add a swipe detect on top of that and take appropriate action depending if sliding left or right. Handy for mobile views.