<?xml version="1.0" encoding="UTF-8"?><oembed><type>video</type><version>1.0</version><html>&lt;iframe src=&quot;https://www.loom.com/embed/049db931b443420dbaf7531f3e3a96f0&quot; frameborder=&quot;0&quot; width=&quot;1280&quot; height=&quot;960&quot; webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;</html><height>960</height><width>1280</width><provider_name>Loom</provider_name><provider_url>https://www.loom.com</provider_url><thumbnail_height>960</thumbnail_height><thumbnail_width>1280</thumbnail_width><thumbnail_url>https://cdn.loom.com/sessions/thumbnails/049db931b443420dbaf7531f3e3a96f0-00001.gif</thumbnail_url><duration>168</duration><title>Animation image au scroll groupe Facebook</title><description>Voici le code HTML à mettre sur la page :  

                                                                                                                                                                                                
 
  
    
      
    
  


.image{
  display:block;
  width:auto;

}
.flex{
  display:flex;
  flex-direction:column;
  align-items:center;
}

.splitting.cells img {
  width: 100%;
  display: block;
}
@supports (display: grid) {
  .splitting.cells {
    position: relative;
    overflow: hidden;
    background-size: cover;
    visibility: hidden;
  }
  .splitting .cell-grid {
    background: inherit;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: -ms-grid;
    display: grid;
    grid-template: repeat(var(--row-total), 1fr)/repeat(var(--col-total), 1fr);
  }
  .splitting .cell {
    background: inherit;
    position: relative;
    display: block;
    overflow: hidden;
    opacity: 1;
  }
  .splitting .cell-inner {
    background: inherit;
    position: absolute;
    visibility: visible;
    /* Size to fit the whole container size */
    width: calc(100% * var(--col-total));
    height: calc(100% * var(--row-total));
    /* Position properly */
    left: calc(-100% * var(--col-index));
    top: calc(-100% * var(--row-index));
  }


window.addEventListener(&quot;load&quot;, () =&gt; {
  const results = Splitting({
    target: &quot;.image&quot;,
    by: &quot;cells&quot;,
    image: true,
    rows: 6
  });

  function myCallback(el) {
    var a = new TimelineMax();
    return a.staggerFromTo(
      &quot;.cell&quot;,
      0.5,
      {
        x: 400,
        opacity: 0
      },
      {
        x: 0,
        opacity: 1,
        ease: Power2.ease
      },
      0.15
    );
  }

  $(&quot;.image&quot;).waypoint(
    function(direction) {
      if (direction === &quot;down&quot;) {
        /* add this.destroy() if you want the animation to only play once */
        myCallback();
      }
    },
    {
      offset: &quot;100%&quot;
    }
  );
});
 







Voici le code à mettre dans le pied de page :








</description></oembed>