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 :)
|
observer.observe(container, { |
|
childList: true, |
|
attributes: true, |
|
subtree: true, |
|
attributeFilter: ['class'], |
|
}); |
attributeFilter customisation should be a simple addition of attributeFilter property to WrapGridArguments with default value of ['class'].
|
{ |
|
duration = 250, |
|
stagger = 0, |
|
easing = 'easeInOut', |
|
onStart = () => { }, |
|
onEnd = () => { }, |
|
}: WrapGridArguments = {} |
I would gladly contribute to implement this feature, if @aholachek OK this change
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 :)animate-css-grid/src/index.ts
Lines 332 to 337 in 599ee43
attributeFiltercustomisation should be a simple addition ofattributeFilterproperty toWrapGridArgumentswith default value of['class'].animate-css-grid/src/index.ts
Lines 100 to 106 in 599ee43
I would gladly contribute to implement this feature, if @aholachek OK this change