I’m having some problems when working with the filter and load more functions on Webflow
They working well together but when I add the “reset animation” of the load more
The page crashed every time I tried each of them (The page just became blank)
Here is the read-only link: Webflow
Just a test page I created for this purpose
You can see the page is crashing right now but will work normally if you remove the fs-cmsload-resetix=true attribute
Hey @ryan1! The issue comes from using initial states for the items interactions. We suggest you simulate this state by using the effects panel as the Attribute will reset the interactions engine and all items on the page will revert to this initial state.
Thanks for your reply
But I’m not sure if it’s the case
You can check in the review only link
I remove all the interaction on the page now and the load more button stilll not working
It’s working when I remove the filter function or the opposite
Hey @ryan1! I am afraid you do have several elements with an initial state defined. And this is causing the issue. You can test this yourself by opening the console and pasting this snippet to manually reset the interactions engine
I also noticed you have the CMS Filter script twice on the page, this may cause a content flash when filtering the items. And you are missing a defined fs-cmsload-mode on your collection list. Please add and test the snippet above. You’ll see new items rendered after the animations are done.
Remember that fs-cmsload-resetix resets ALL interactions present on he page, it is not limited to the item interactions only.
Hi @Support-Luis
This seems to be working
Many thanks for that
Now I’m actually facing a different problem
I want to use the Show Query (fs-cmsfilter-showquery) for the CMS filter
Which is working as it adds the query to the URL
But then when I try to use that link, for example, belvercreative.com.au/works/cms-filter?categories=digital
It stops the animation and the page from loading (basically the page freezes when loaded)
If we open the page that is prefilled (with the categories query in the URL) and has more than 6 projects at the start (more than 6 projects in that category) and therefore shows the load more button, this issue not happening and the page loading normally
So this only happens in the scenario where we open the link that has less project than the setting of pagination (which is 6) at the start
Hi Luis
The problem right now is that some of the animation at the top not working anymore
When we load the initial page: Our Work?
Everything working fine here
Before when I load the link with “category=DIGITAL” query it’s working fine as that was the only page that has more than 6 projects so we have the load more button at the start, but now it breaks too
The initial states will not work with the query param, as this loads the page with the filters applied there is a renderitems event firing before you see the items. This resets the animations to their initial states which breaks them.
If you only have 6 items to filter, you can remove the CMS Load setup and avoid paginating the elements.
I can assure you the issue will disappear with this approach
Thanks for your reply
But as I mentioned before
I removed all the initial state for the page
You are on Our Work page which still have them
We are testing on Our Work Copy page which doesn’t have any initial state on the animation anymore
Can you please have a look again on the correct page that I mentioned?
Thanks so much for your reply
Sorry for going around on this but I still can’t seem to fix the problem now
I record a quick loom to show it, now when I surely remove all the animation with the initial state on the page but animations still not running
Some animations use the same animation but some are running while some are not (the heading at top and the CTA)
Some elements don’t have the initial state set but the first animation at 0s is mainly to go around when removing the initial state also seem to be not working (the filter)
I created a separate page (Our Work Test) that only has the listing and the elements that I mentioned so you can test it out
If you able to have a look on this that would be great but I’m sure there’s no element with the initial state on the page anymore
I would prefer if we have some code to reset the animation every time we land on the page or a different way to fix this quickly as I suspect the way that I do the trick to go around the initial state not working (set the first animation at 0s) but changing this will lead to change all the animation on the page which is not ideal and taking a lot of time so hope we can find a way around this quicker
Appreaciate the help so far and hope we can get this out soon
Also we just noticed this problem
We have this showing image animation which basically shows/hides a black div at to reveal the image which working fine with the load more
But when we use the filter
If we don’t scroll down a specific project before using the filter, you can try not revealing PLN project for example, and use the filter Graphic Design, you can see PLN is not showing as the Scroll Into View triggering seems to not working, but when we get back to “All”, we can still have that working normally
All the project that is part of the load more projects (from 7th) is also having the same problem, when we not hitting the load more yet but use the filter, it will show some of the project that not belong to the first 6s and those new is not animating
I don’t think there is any reset animation attribute for the filter itself so not sure how can we fix it, please use the “Our Work Copy” page to see this problem
Hey @ryan1! We might be getting somewhere, I have tried removing the fs-cmsload-resetix = true attribute from the list and instead using this snippet that hard resets Webflow’s interaction engine
There have been no updates yet as we are focused on development for Attributes V2.
We can try something on your end that has worked sometimes for other users. This is rebuilding the page from scratch, keeping in mind the issues that come with using initial states on interactions.