The Official Twitter Archive of @404boyfriend™ (née @xdesro)

  • Recent
  • Bangers
  • Stats
  • About
  • Newest Tweet
  • Newer Tweet
  • Older Tweet
    …in reply to @ChrisCreatesIt
    2020 Dec 8
    @ChrisCreatesIt It's just a utility class that runs the RAF loop and does some eased linear interpolation between the last position of the image and the position the image is supposed to reach, so it slows down as it approaches the final position!
    On twitter.com
    Likes
    1
      …in reply to @404boyfriend
      2020 Dec 8
      @ChrisCreatesIt Or more accurately, it's one RAF loop that runs a render function that does all that other stuff for every image that's targeted — first checking an IntersectionObserver to make sure the image is on screen and worth animating.
      Permalink On twitter.com
      Likes
      1

An open source project from tweetback.