animate-css-grid icon indicating copy to clipboard operation
animate-css-grid copied to clipboard

Feature: allow for attributeFilter customisation

Open ronimizy opened this issue 1 year ago • 0 comments

hi, found your package very useful, but 'class' filter in MutationObserver is quite limiting. having a scenario when grid is formed dynamically with positioning via style attributes, so I am forced to hack my way around with "version" class that increments every position change :)

https://github.com/aholachek/animate-css-grid/blob/599ee43edb1f001d7d5555d9086dee1a1b914252/src/index.ts#L332-L337

attributeFilter customisation should be a simple addition of attributeFilter property to WrapGridArguments with default value of ['class'].

https://github.com/aholachek/animate-css-grid/blob/599ee43edb1f001d7d5555d9086dee1a1b914252/src/index.ts#L100-L106

I would gladly contribute to implement this feature, if @aholachek OK this change

ronimizy avatar Nov 01 '24 11:11 ronimizy