animate-css-grid
animate-css-grid copied to clipboard
Feature: allow for attributeFilter customisation
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