Skip to content

Latest commit

 

History

History

logo-tilt

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Logo tilt

I wanted to try out a goofy idea. I wanted to animate a website’s logo so that it would fall over when you scroll down, and right itself when you scroll up. In particular, I wanted the logo to be a head or have a cartoonish look.

demo of logo tilt

I discuss the code behind it in my post, How to detect scroll direction in vanilla JavaScript (to make a goofy logo animation).

This idea could be used to tilt individual page items as you scroll to give a uncanny sense of movement, kind of like you are moving the wall on which things hang. The IntersectionObserver API would be more suitable in the case of working with page items.

To see it in action: