Intersection observer

Hi people, does anyone know how to implement an intersection observer in frontity?

I have a list of posts and i want to add a 3d animation to the posts while scrolling.
Because of server side rendering I can´t use document or window objects in the actions of my theme and script tags added in html are not executed.

Sorry if the question is stupid but i am a new developer and i am starting with frontity.

greetings from spain :grinning:

Hi @mrodrigueztorroba

Welcome to the Frontity community.

There are a number of ways in which you can select code to be executed only in the client

Hope this helps.

1 Like

@mrodrigueztorroba there is a specific hook called useInView that can help you with this