Pricing Blog

Intersection observer

  • ssssadsadasd-1356634922621603983

    ssssadsadasd

    3 months ago

    In the following [page](https://toddle.dev/projects/moccasin_palpatine_chief_rook/branches/start/components/test5?canvas-width=800&rightpanel=attributes&selection=nodes.rpdz-cdegHkbnC7oqL2qD.attrs.threshold&canvas-height=1196), I am trying to implement the intersection observer package. So, when the blue group is visible I want to set the variable to true. However, even if I set the initial value of the variable as false it always shows as true. Also I am not sure what the parameters mean:
    root-element-id
    root-margin
    threshold

    Anyone has any hint? thanks

    P.S.: The video in the intersection observer package page does not belong to this package.
  • jacobkofoed-1357409158781206611

    Jacob Kofoed

    2 months ago

    Hi Seno, I will update the package description first thing tomorrow to answer your questions. Perhaps by example. You can always open the package by clicking “clone” to see how the example page is built until then 👍
  • ssssadsadasd-1357417510848299018

    ssssadsadasd

    2 months ago

    @Jacob Kofoed thanks for the reply! yes, I cloned it but still not sure of how it works. looking forward to your further explanation 😀